3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { function bar() { echo 'bar'; }} $foobar = new foo; // (global $foobar)->bar(); $GLOBALS['foobar']->bar();

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.0210.00316.38
8.3.50.0180.00316.43
8.3.40.0150.00018.71
8.3.30.0030.01018.45
8.3.20.0100.00320.33
8.3.10.0080.00021.85
8.3.00.0070.00020.84
8.2.180.0140.00318.54
8.2.170.0120.00422.96
8.2.160.0110.00322.10
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00420.52
8.2.120.0070.00026.35
8.2.110.0040.00420.57
8.2.100.0080.00317.72
8.2.90.0000.00819.14
8.2.80.0060.00317.97
8.2.70.0040.00417.50
8.2.60.0070.00317.93
8.2.50.0000.00818.10
8.2.40.0040.00422.14
8.2.30.0040.00420.91
8.2.20.0040.00418.11
8.2.10.0030.00618.11
8.2.00.0000.00717.99
8.1.280.0140.01425.92
8.1.270.0060.00322.19
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0030.00622.36
8.1.230.0070.00319.09
8.1.220.0040.00417.74
8.1.210.0090.00018.77
8.1.200.0090.00017.22
8.1.190.0070.00317.13
8.1.180.0000.00818.10
8.1.170.0080.00018.46
8.1.160.0070.00019.02
8.1.150.0000.00718.79
8.1.140.0000.00719.56
8.1.130.0000.00718.80
8.1.120.0040.00417.35
8.1.110.0040.00417.41
8.1.100.0070.00017.45
8.1.90.0030.00517.48
8.1.80.0070.00017.50
8.1.70.0000.00817.35
8.1.60.0000.00817.58
8.1.50.0000.00817.42
8.1.40.0040.00417.43
8.1.30.0050.00317.64
8.1.20.0000.00817.67
8.1.10.0000.00717.53
8.1.00.0050.00317.52
8.0.300.0000.00718.77
8.0.290.0000.00716.58
8.0.280.0040.00418.49
8.0.270.0050.00317.27
8.0.260.0060.00016.83
8.0.250.0000.00716.88
8.0.240.0050.00316.79
8.0.230.0000.00716.91
8.0.220.0030.00316.81
8.0.210.0040.00416.89
8.0.200.0050.00216.87
8.0.190.0040.00416.86
8.0.180.0000.00716.93
8.0.170.0000.00716.89
8.0.160.0000.00716.86
8.0.150.0000.00716.86
8.0.140.0030.00316.80
8.0.130.0060.00013.39
8.0.120.0040.00416.75
8.0.110.0020.00516.89
8.0.100.0040.00416.78
8.0.90.0040.00416.90
8.0.80.0070.01016.88
8.0.70.0070.00016.79
8.0.60.0040.00416.77
8.0.50.0000.00716.94
8.0.30.0160.00417.13
8.0.20.0070.01317.42
8.0.10.0070.00016.90
8.0.00.0060.00916.61
7.4.330.0000.00415.55
7.4.320.0000.00616.61
7.4.300.0030.00316.51
7.4.290.0030.00316.60
7.4.280.0080.00016.45
7.4.270.0070.00016.54
7.4.260.0030.00313.27
7.4.250.0040.00416.55
7.4.240.0000.00716.52
7.4.230.0040.00416.68
7.4.220.0140.00416.47
7.4.210.0100.00716.56
7.4.200.0000.00716.59
7.4.160.0120.00416.45
7.4.150.0100.00717.40
7.4.140.0150.00517.86
7.4.130.0140.01116.48
7.4.120.0090.01016.46
7.4.110.0070.01016.38
7.4.100.0170.00016.60
7.4.90.0070.01016.60
7.4.80.0100.01319.39
7.4.70.0090.00616.41
7.4.60.0080.00816.57
7.4.50.0080.00816.46
7.4.40.0170.00316.71
7.4.30.0120.00916.48
7.4.00.0100.00015.16
7.3.330.0060.00013.33
7.3.320.0050.00013.16
7.3.310.0030.00316.20
7.3.300.0000.00716.17
7.3.290.0050.00916.33
7.3.280.0060.01016.29
7.3.270.0110.00717.40
7.3.260.0110.00616.33
7.3.250.0130.00916.34
7.3.240.0080.00916.50
7.3.230.0070.01016.41
7.3.210.0060.01216.43
7.3.200.0130.00316.59
7.3.190.0040.01116.33
7.3.180.0030.01216.32
7.3.170.0000.01516.46
7.3.160.0160.00016.49
7.3.120.0120.00314.79
7.3.110.0100.00714.85
7.3.100.0060.00915.07
7.3.90.0120.00314.89
7.3.80.0030.01314.91
7.3.70.0030.01214.83
7.3.60.0060.00614.87
7.3.50.0070.00714.81
7.3.40.0030.00914.65
7.3.30.0030.01214.91
7.3.20.0070.00716.66
7.3.10.0070.01016.73
7.3.00.0000.01416.38
7.2.330.0170.00316.45
7.2.320.0060.01116.70
7.2.310.0100.00616.36
7.2.300.0110.00716.67
7.2.290.0180.00316.58
7.2.240.0030.00915.08
7.2.230.0040.00814.89
7.2.220.0080.00414.92
7.2.210.0120.00315.32
7.2.200.0050.00515.07
7.2.190.0130.00015.18
7.2.180.0080.00814.70
7.2.170.0060.00815.12
7.2.160.0070.01115.06
7.2.150.0040.00816.70
7.2.140.0030.01016.57
7.2.130.0090.00616.96
7.2.120.0000.01816.68
7.2.110.0040.01116.95
7.2.100.0030.01016.90
7.2.90.0070.01116.90
7.2.80.0130.00316.83
7.2.70.0030.00716.97
7.2.60.0090.01016.81
7.2.50.0100.00317.02
7.2.40.0060.00816.97
7.2.30.0120.00617.03
7.2.20.0030.01317.00
7.2.10.0030.01016.71
7.2.00.0070.00718.08
7.1.330.0030.01015.80
7.1.320.0070.01015.64
7.1.310.0060.01016.01
7.1.300.0030.01015.87
7.1.290.0060.00615.54
7.1.280.0100.00615.76
7.1.270.0030.01215.73
7.1.260.0000.01415.57
7.1.250.0030.00915.59
7.1.200.0080.00015.50
7.1.100.0030.00618.30
7.1.70.0030.00517.11
7.1.60.0170.01333.04
7.1.50.0200.01032.89
7.1.40.0700.01332.45
7.1.30.0700.01332.43
7.1.20.0630.02032.52
7.1.10.0700.01014.68
7.1.00.0830.01014.49
7.0.200.0070.00714.75
7.0.190.0600.01014.93
7.0.180.0500.01714.50
7.0.170.0630.00314.26
7.0.160.0500.01314.25
7.0.150.0800.01014.24
7.0.140.0700.00714.34
7.0.130.0600.00714.37
7.0.120.0570.01314.37
7.0.110.0570.01314.33
7.0.100.0600.00714.51
7.0.90.0500.01314.62
7.0.80.0570.00714.59
7.0.70.0630.00314.45
7.0.60.0530.01014.31
7.0.50.0730.01014.46
7.0.40.0570.01314.46
7.0.30.0670.00714.77
7.0.20.0630.01314.38
7.0.10.0730.01314.70
7.0.00.0630.00314.43

preferences:
40.65 ms | 401 KiB | 5 Q