3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = new class { public static function assertTrue() { echo "assert true"; } public function myTest() { $this->assertTrue('bar'); } }; $foo->myTest();

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.59
8.3.60.0060.00918.08
8.3.50.0070.01221.17
8.3.40.0120.00318.79
8.3.30.0120.00618.56
8.3.20.0050.00320.51
8.3.10.0040.00423.48
8.3.00.0040.00421.73
8.2.180.0110.01116.63
8.2.170.0070.01022.96
8.2.160.0150.00320.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00020.77
8.2.120.0040.00426.35
8.2.110.0100.00020.97
8.2.100.0040.00817.72
8.2.90.0030.00517.97
8.2.80.0000.00817.97
8.2.70.0050.00317.50
8.2.60.0060.00318.04
8.2.50.0030.00518.09
8.2.40.0030.00622.11
8.2.30.0030.00319.49
8.2.20.0000.00817.59
8.2.10.0080.00018.11
8.2.00.0040.00418.06
8.1.280.0140.00725.92
8.1.270.0090.00922.18
8.1.260.0040.00428.09
8.1.250.0000.00728.09
8.1.240.0060.00322.21
8.1.230.0080.00320.90
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0040.00717.38
8.1.190.0000.00817.35
8.1.180.0050.00318.10
8.1.170.0060.00318.50
8.1.160.0040.00420.67
8.1.150.0040.00418.89
8.1.140.0090.00019.67
8.1.130.0050.00217.34
8.1.120.0000.00717.37
8.1.110.0040.00417.35
8.1.100.0000.00717.34
8.1.90.0040.00417.35
8.1.80.0040.00417.46
8.1.70.0030.00317.43
8.1.60.0060.00317.46
8.1.50.0050.00317.48
8.1.40.0000.00817.45
8.1.30.0030.00517.66
8.1.20.0000.00717.47
8.1.10.0040.00417.46
8.1.00.0000.00717.49
8.0.300.0040.00420.07
8.0.290.0050.00216.75
8.0.280.0000.00718.54
8.0.270.0030.00317.30
8.0.260.0060.00016.81
8.0.250.0030.00316.89
8.0.240.0060.00316.82
8.0.230.0000.00716.82
8.0.220.0080.00016.75
8.0.210.0000.00716.87
8.0.200.0000.00616.87
8.0.190.0040.00416.77
8.0.180.0000.00716.94
8.0.170.0040.00416.92
8.0.160.0000.00716.80
8.0.150.0040.00416.79
8.0.140.0000.00816.82
8.0.130.0030.00313.30
8.0.120.0000.00816.87
8.0.110.0000.00716.75
8.0.100.0020.00516.70
8.0.90.0030.00516.66
8.0.80.0090.00616.91
8.0.70.0000.00716.86
8.0.60.0000.00716.87
8.0.50.0000.00716.75
8.0.30.0120.00617.01
8.0.20.0140.00517.40
8.0.10.0000.00816.82
8.0.00.0080.01016.75
7.4.330.0060.00016.67
7.4.320.0060.00016.42
7.4.300.0070.00016.63
7.4.290.0030.00316.64
7.4.280.0050.00616.54
7.4.270.0030.00316.49
7.4.260.0020.00516.46
7.4.250.0030.00316.36
7.4.240.0070.00016.50
7.4.230.0030.00316.53
7.4.220.0100.01516.52
7.4.210.0000.01516.51
7.4.200.0030.00316.68
7.4.160.0130.00316.50
7.4.150.0140.01117.40
7.4.140.0120.00817.86
7.4.130.0070.01016.47
7.4.120.0110.00616.42
7.4.110.0100.00716.50
7.4.100.0060.01016.54
7.4.90.0110.01116.52
7.4.80.0130.00919.39
7.4.70.0100.00616.35
7.4.60.0130.00316.45
7.4.50.0030.00916.18
7.4.40.0100.00716.49
7.4.30.0090.00916.66
7.4.00.0060.01014.73
7.3.330.0050.00013.04
7.3.320.0000.00513.09
7.3.310.0070.00016.28
7.3.300.0060.00016.25
7.3.290.0070.00916.19
7.3.280.0090.00916.23
7.3.270.0090.00917.40
7.3.260.0070.01116.21
7.3.250.0120.00916.25
7.3.240.0100.00716.23
7.3.230.0110.00716.39
7.3.210.0140.00616.20
7.3.200.0100.00716.20
7.3.190.0100.00616.49
7.3.180.0160.00016.25
7.3.170.0100.01016.27
7.3.160.0090.01316.52
7.2.330.0120.00616.26
7.2.320.0140.00716.65
7.2.310.0080.00816.35
7.2.300.0030.01316.67
7.2.290.0100.01616.53
7.2.80.0030.01216.70
7.2.60.0080.00816.82
7.2.00.0060.00619.18
7.1.200.0060.00015.84
7.1.100.0160.00417.60
7.1.70.0000.00817.22
7.1.60.0090.01819.40
7.1.50.0060.00616.89
7.1.00.0000.07722.48
7.0.200.0530.00414.24
7.0.60.0170.04319.96
7.0.50.0030.04717.85
7.0.40.0130.07720.23
7.0.30.0330.07720.25
7.0.20.0230.06320.09
7.0.10.0170.07720.09
7.0.00.0100.03720.12
5.6.280.0070.03021.12
5.6.210.0100.03320.68
5.6.200.0170.07018.29
5.6.190.0030.04720.63
5.6.180.0300.05320.41
5.6.170.0400.07320.47
5.6.160.0100.08320.52
5.6.150.0030.08718.23
5.6.140.0070.08018.12
5.6.130.0130.07718.14
5.6.120.0100.06021.00
5.6.110.0100.09321.11
5.6.100.0130.06721.03
5.6.90.0030.07021.01
5.6.80.0000.09020.41
5.5.350.0270.10320.45
5.5.340.0000.09017.91
5.5.330.0100.06720.14
5.5.320.0570.07320.24
5.5.310.0270.04720.23
5.5.300.0070.03717.97
5.5.290.0070.07717.95
5.5.280.0130.06320.86
5.5.270.0170.07720.96
5.5.260.0130.07320.75
5.5.250.0030.04320.65
5.5.240.4270.03720.25

preferences:
56.89 ms | 401 KiB | 5 Q