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(); ?>

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.70.0150.00316.50
8.3.60.0120.00318.15
8.3.50.0070.00716.60
8.3.40.0180.00018.54
8.3.30.0170.00318.63
8.3.20.0030.00621.77
8.3.10.0040.00420.27
8.3.00.0000.00820.55
8.2.190.0030.01316.58
8.2.180.0110.00718.54
8.2.170.0140.00722.96
8.2.160.0060.01022.06
8.2.150.0050.00524.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0040.00426.16
8.2.110.0050.00520.54
8.2.100.0070.00418.09
8.2.90.0090.00017.50
8.2.80.0000.00818.66
8.2.70.0040.00417.50
8.2.60.0030.00617.50
8.2.50.0070.00017.91
8.2.40.0040.00419.75
8.2.30.0000.00717.53
8.2.20.0000.00718.05
8.2.10.0080.00019.05
8.2.00.0070.00019.17
8.1.280.0070.01025.92
8.1.270.0000.00820.69
8.1.260.0040.00426.35
8.1.250.0110.00028.09
8.1.240.0030.00619.01
8.1.230.0040.00720.89
8.1.220.0080.00018.43
8.1.210.0000.00718.77
8.1.200.0040.00417.11
8.1.190.0040.00417.11
8.1.180.0030.00518.10
8.1.170.0050.00317.62
8.1.160.0040.00418.91
8.1.150.0080.00018.69
8.1.140.0000.00822.08
8.1.130.0000.00720.18
8.1.120.0070.00417.43
8.1.110.0070.00017.36
8.1.100.0000.00817.43
8.1.90.0000.00717.43
8.1.80.0000.00717.26
8.1.70.0040.00717.34
8.1.60.0030.00617.58
8.1.50.0050.00317.45
8.1.40.0000.00917.39
8.1.30.0050.00317.48
8.1.20.0050.00517.53
8.1.10.0060.00317.46
8.1.00.0030.00517.38
8.0.300.0070.00018.77
8.0.290.0000.00716.63
8.0.280.0070.00018.56
8.0.270.0030.00317.94
8.0.260.0030.00319.99
8.0.250.0070.00016.89
8.0.240.0030.00316.84
8.0.230.0000.00716.77
8.0.220.0040.00416.78
8.0.210.0070.00016.84
8.0.200.0000.00616.92
8.0.190.0000.00816.79
8.0.180.0040.00416.88
8.0.170.0060.00316.86
8.0.160.0030.00616.79
8.0.150.0070.00016.78
8.0.140.0070.00016.83
8.0.130.0000.00613.29
8.0.120.0040.00416.74
8.0.110.0050.00316.66
8.0.100.0030.00516.77
8.0.90.0000.00816.89
8.0.80.0060.01316.89
8.0.70.0080.00016.88
8.0.60.0070.00016.77
8.0.50.0020.00516.71
8.0.30.0140.01017.29
8.0.20.0090.00917.04
8.0.10.0040.00416.85
8.0.00.0100.00716.63
7.4.330.0050.00015.55
7.4.320.0070.00016.52
7.4.300.0030.00316.43
7.4.290.0040.00416.52
7.4.280.0060.00316.43
7.4.270.0000.00716.43
7.4.260.0000.00513.27
7.4.250.0040.00416.34
7.4.240.0050.00516.42
7.4.230.0030.00316.32
7.4.220.0040.00416.39
7.4.210.0050.01216.42
7.4.200.0030.00316.63
7.4.130.0070.01716.55
7.4.120.0030.01316.59
7.4.110.0070.01416.41
7.4.100.0130.01216.48
7.4.90.0130.00316.48
7.4.80.0040.01419.39
7.4.70.0080.00816.41
7.4.60.0060.01016.39
7.4.50.0130.00016.34
7.4.40.0100.00716.41
7.4.00.0190.00714.93
7.3.330.0070.00016.27
7.3.320.0000.00613.18
7.3.310.0000.00716.23
7.3.300.0000.00616.18
7.3.290.0000.00616.15
7.3.280.0150.00016.18
7.3.260.0080.00816.52
7.3.230.0040.01816.22
7.3.210.0090.01216.11
7.3.200.0070.01316.17
7.3.190.0060.00916.58
7.3.180.0120.00616.52
7.3.170.0070.01016.44
7.3.160.0100.00716.28
7.3.120.0140.00914.91
7.3.110.0210.00414.63
7.3.100.0110.01214.16
7.3.90.0210.00714.64
7.3.80.0210.00014.59
7.3.70.0160.00614.76
7.3.60.0170.01014.69
7.3.50.0160.00514.73
7.3.40.0180.00314.34
7.3.30.0090.00914.70
7.3.20.0160.00614.61
7.3.10.0180.00414.74
7.3.00.0110.00314.22
7.2.330.0040.01416.46
7.2.320.0110.00616.56
7.2.310.0120.00316.55
7.2.300.0060.01216.40
7.2.290.0090.00916.37
7.2.250.0100.01315.02
7.2.240.0070.01514.55
7.2.230.0150.00614.95
7.2.220.0160.00614.74
7.2.210.0130.00714.68
7.2.200.0170.00614.98
7.2.190.0230.00314.80
7.2.180.0150.00614.73
7.2.170.0060.01614.53
7.1.330.0140.00713.63
7.1.320.0080.01313.45
7.1.310.0140.00613.83
7.1.300.0120.00713.45
7.1.290.0180.00313.64
7.1.280.0110.00813.79
7.1.270.0140.00613.65
7.1.260.0140.00513.71

preferences:
35.51 ms | 401 KiB | 5 Q