3v4l.org

run code in 300+ PHP versions simultaneously
<?php class book { function info(){ $infoOne = 'title'; $this->$infoOne(); } function title(){ return 'The weird side of PHP'; } } $book = new book(); $funcname = 'infoOne'; $book->$funcname(); $funcname(); ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0060.00918.30
8.3.50.0140.00016.52
8.3.40.0140.00718.88
8.3.30.0110.00418.53
8.3.20.0040.00421.91
8.3.10.0030.00520.34
8.3.00.0040.00420.58
8.2.180.0070.01018.48
8.2.170.0120.00322.96
8.2.160.0070.01022.09
8.2.150.0030.00524.18
8.2.140.0030.00624.66
8.2.130.0000.00726.16
8.2.120.0000.00826.16
8.2.110.0070.00422.08
8.2.100.0190.00017.72
8.2.90.0060.00318.21
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0080.00017.91
8.2.50.0030.00517.80
8.2.40.0040.00419.76
8.2.30.0040.00417.63
8.2.20.0060.00317.88
8.2.10.0040.00419.25
8.2.00.0000.00719.24
8.1.280.0090.00625.92
8.1.270.0040.00420.69
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0060.00322.02
8.1.230.0110.00020.90
8.1.220.0090.00017.77
8.1.210.0040.00418.77
8.1.200.0060.00317.36
8.1.190.0030.00517.22
8.1.180.0060.00318.10
8.1.170.0040.00417.62
8.1.160.0050.00318.77
8.1.150.0000.00718.83
8.1.140.0000.00722.14
8.1.130.0000.00720.08
8.1.120.0030.00717.41
8.1.110.0040.00417.41
8.1.100.0040.00417.30
8.1.90.0070.00017.30
8.1.80.0040.00417.38
8.1.70.0030.00617.39
8.1.60.0110.00017.53
8.1.50.0000.00817.52
8.1.40.0000.00817.37
8.1.30.0040.00417.66
8.1.20.0030.00617.63
8.1.10.0000.00817.50
8.1.00.0000.00917.48
8.0.300.0070.00019.79
8.0.290.0000.00916.58
8.0.280.0000.00818.29
8.0.270.0030.00317.89
8.0.260.0000.00619.89
8.0.250.0070.00016.88
8.0.240.0000.00716.97
8.0.230.0000.00716.79
8.0.220.0030.00516.89
8.0.210.0040.00416.95
8.0.200.0060.00016.98
8.0.190.0030.00616.95
8.0.180.0040.00716.82
8.0.170.0040.00416.78
8.0.160.0040.00417.02
8.0.150.0060.00316.91
8.0.140.0050.00316.82
8.0.130.0050.00013.26
8.0.120.0000.00816.92
8.0.110.0050.00316.92
8.0.100.0000.00816.69
8.0.90.0030.00616.78
8.0.80.0060.00916.88
8.0.70.0070.00016.93
8.0.60.0000.00716.79
8.0.50.0000.00716.89
8.0.30.0100.01317.36
8.0.20.0090.01517.13
8.0.10.0000.00716.95
8.0.00.0120.00616.79
7.4.330.0000.00515.55
7.4.320.0000.00616.36
7.4.300.0060.00016.50
7.4.290.0040.00416.61
7.4.280.0040.00416.51
7.4.270.0000.00716.66
7.4.260.0060.00013.31
7.4.250.0050.00216.46
7.4.240.0040.00316.53
7.4.230.0030.00316.56
7.4.220.0070.00016.52
7.4.210.0090.00616.56
7.4.200.0030.00316.41
7.4.130.0070.01016.51
7.4.120.0100.01016.62
7.4.110.0110.00616.66
7.4.100.0110.00816.63
7.4.90.0070.01016.49
7.4.80.0140.00319.39
7.4.70.0100.00716.43
7.4.60.0080.00816.51
7.4.50.0030.01416.49
7.4.40.0000.01616.71
7.4.00.0080.00814.73
7.3.330.0030.00316.27
7.3.320.0000.00513.26
7.3.310.0080.00016.36
7.3.300.0070.00016.18
7.3.290.0030.00316.24
7.3.280.0060.00916.27
7.3.260.0130.00316.53
7.3.230.0080.00816.54
7.3.210.0100.00716.48
7.3.200.0120.00416.55
7.3.190.0120.00616.50
7.3.180.0030.01316.36
7.3.170.0140.00316.21
7.3.160.0140.00416.32
7.3.120.0090.00714.79
7.3.110.0070.00714.82
7.3.100.0080.00614.62
7.3.90.0060.00614.38
7.3.80.0070.00714.95
7.3.70.0080.00514.54
7.3.60.0070.00714.21
7.3.50.0080.00614.55
7.3.40.0100.00314.44
7.3.30.0150.00014.71
7.3.20.0080.00614.43
7.3.10.0060.00914.41
7.3.00.0000.01314.81
7.2.330.0060.01216.54
7.2.320.0140.00516.50
7.2.310.0100.00716.54
7.2.300.0090.01016.32
7.2.290.0120.00916.71
7.2.250.0100.00915.03
7.2.240.0120.00314.95
7.2.230.0080.00614.59
7.2.220.0110.00314.63
7.2.210.0070.00714.77
7.2.200.0030.01214.85
7.2.190.0120.00314.67
7.2.180.0070.00714.91
7.2.170.0110.00314.61
7.1.330.0070.00713.60
7.1.320.0000.01413.50
7.1.310.0040.00913.41
7.1.300.0050.00913.58
7.1.290.0100.00313.59
7.1.280.0070.01013.55
7.1.270.0050.00813.47
7.1.260.0030.01013.57

preferences:
63.28 ms | 400 KiB | 5 Q