3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass {} function foo( stdClass $class ) {} foo( new MyClass );

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.0140.00318.33
8.3.50.0230.00722.05
8.3.40.0000.01518.75
8.3.30.0080.00818.89
8.3.20.0000.00720.11
8.3.10.0070.00023.48
8.3.00.0080.00019.38
8.2.180.0040.01116.63
8.2.170.0070.00722.96
8.2.160.0170.00320.57
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0000.00817.50
8.2.120.0080.00026.35
8.2.110.0080.00322.21
8.2.100.0080.00317.91
8.2.90.0090.00019.09
8.2.80.0060.00317.97
8.2.70.0090.00017.50
8.2.60.0060.00317.93
8.2.50.0000.00818.07
8.2.40.0040.00719.27
8.2.30.0040.00420.61
8.2.20.0040.00417.67
8.2.10.0040.00418.08
8.2.00.0030.00917.86
8.1.280.0100.00625.92
8.1.270.0050.00523.73
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0090.00022.52
8.1.230.0080.00417.65
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0060.00317.00
8.1.190.0040.00417.64
8.1.180.0040.00418.10
8.1.170.0060.00318.66
8.1.160.0070.00021.86
8.1.150.0000.00718.75
8.1.140.0030.00519.43
8.1.130.0070.00017.55
8.1.120.0000.00717.22
8.1.110.0070.00017.21
8.1.100.0000.00717.22
8.1.90.0040.00417.38
8.1.80.0000.00717.35
8.1.70.0080.00017.31
8.1.60.0000.00717.41
8.1.50.0040.00417.47
8.1.40.0080.00417.39
8.1.30.0030.00617.42
8.1.20.0000.00717.39
8.1.10.0040.00417.48
8.1.00.0040.00417.43
8.0.300.0060.00318.77
8.0.290.0060.00316.74
8.0.280.0030.00318.28
8.0.270.0070.00017.18
8.0.260.0000.00817.25
8.0.250.0040.00416.94
8.0.240.0030.00316.95
8.0.230.0000.00716.95
8.0.220.0040.00416.75
8.0.210.0070.00016.89
8.0.200.0030.00316.95
8.0.190.0050.00316.95
8.0.180.0040.00416.90
8.0.170.0040.00416.92
8.0.160.0020.00516.84
8.0.150.0060.00316.93
8.0.140.0000.00716.88
8.0.130.0030.00313.26
8.0.120.0070.00016.85
8.0.110.0000.00716.93
8.0.100.0040.00416.78
8.0.90.0070.00016.92
8.0.80.0140.00016.79
8.0.70.0000.00816.89
8.0.60.0020.00516.88
8.0.50.0000.00816.72
8.0.30.0100.00816.95
8.0.20.0100.01117.40
8.0.10.0000.00816.92
8.0.00.0080.01316.59
7.4.330.0020.00216.71
7.4.320.0000.00716.52
7.4.300.0000.00716.39
7.4.290.0000.00716.57
7.4.280.0030.00616.43
7.4.270.0000.00716.43
7.4.260.0000.00716.51
7.4.250.0040.00416.32
7.4.240.0040.00316.45
7.4.230.0000.00716.43
7.4.220.0090.01216.48
7.4.210.0030.01016.55
7.4.200.0030.00316.62
7.4.160.0090.00616.31
7.4.150.0070.01117.40
7.4.140.0080.01217.86
7.4.130.0090.00816.60
7.4.120.0110.00616.37
7.4.110.0150.00916.49
7.4.100.0120.00916.57
7.4.90.0140.00916.56
7.4.80.0050.01419.39
7.4.70.0030.01316.22
7.4.60.0130.00316.37
7.4.50.0040.01516.33
7.4.40.0110.00716.44
7.4.30.0080.01516.48
7.4.00.0100.00714.97
7.3.330.0030.00313.22
7.3.320.0050.00013.32
7.3.310.0030.00516.32
7.3.300.0070.00016.26
7.3.290.0000.00716.15
7.3.280.0090.00916.29
7.3.270.0040.01217.40
7.3.260.0140.00416.32
7.3.250.0150.00916.51
7.3.240.0120.00816.33
7.3.230.0140.00516.39
7.3.210.0110.00616.36
7.3.200.0060.00916.43
7.3.190.0060.01316.30
7.3.180.0070.01316.20
7.3.170.0100.00916.31
7.3.160.0110.00416.20
7.2.330.0090.00916.61
7.2.320.0060.01116.53
7.2.310.0130.00316.27
7.2.300.0100.00716.65
7.2.290.0080.01516.64
7.2.80.0040.01116.07
7.2.60.0070.00716.62
7.2.00.0100.00719.00
7.1.200.0030.01015.65
7.1.100.0000.01018.00
7.1.70.0000.00816.73
7.1.60.0060.01919.36
7.1.50.0100.00716.86
7.1.00.0000.07722.46
7.0.200.0000.00816.82
7.0.100.0100.07319.99
7.0.90.0070.07719.89
7.0.80.0170.07320.01
7.0.70.0100.07720.15
7.0.60.0070.04019.92
7.0.50.0070.04720.31
7.0.40.0000.04719.99
7.0.30.0030.07320.16
7.0.20.0100.07720.18
7.0.10.0070.08320.05
7.0.00.0030.04020.09
5.6.280.0000.03321.13
5.6.250.0100.08020.63
5.6.240.0000.08720.67
5.6.230.0130.07320.63
5.6.220.0030.04320.62
5.6.210.0070.06320.75
5.6.200.0000.04721.05
5.6.190.0030.05321.02
5.6.180.0000.08721.14
5.6.170.0100.07321.04
5.6.160.0170.05720.94
5.6.150.0070.04021.11
5.6.140.0070.03720.95
5.6.130.0030.04321.11
5.6.120.0100.05021.01
5.6.110.0000.04321.02
5.6.100.0170.03021.12
5.6.90.0030.06321.00
5.6.80.0000.04320.44
5.6.70.0000.04720.50
5.6.60.0100.03320.41
5.6.50.0070.04720.41
5.6.40.0100.03020.38
5.6.30.0030.04020.45
5.6.20.0030.04020.41
5.6.10.0030.04020.31
5.6.00.0030.04020.41
5.5.380.0070.08320.52
5.5.370.0170.07320.44
5.5.360.0130.06720.34
5.5.350.0170.03720.39
5.5.340.0000.04320.75
5.5.330.0000.06020.92
5.5.320.0030.04720.84
5.5.310.0070.06720.92
5.5.300.0070.04020.78
5.5.290.0030.04020.90
5.5.280.0030.05720.83
5.5.270.0000.04320.88
5.5.260.0100.06720.82
5.5.250.0070.03720.54
5.5.240.0130.02720.29
5.5.230.0070.04320.14
5.5.220.0030.03720.21
5.5.210.0070.03720.30
5.5.200.0070.03320.18
5.5.190.0030.04320.14
5.5.180.0030.03720.24
5.5.160.0100.03020.13
5.5.150.0070.03320.12
5.5.140.0000.04020.11
5.5.130.0030.04020.26
5.5.120.0030.05320.13
5.5.110.0100.03320.22
5.5.100.0030.07020.14
5.5.90.0030.03720.09
5.5.80.0000.03720.13
5.5.70.0000.07020.14
5.5.60.0070.03320.05
5.5.50.0030.03720.10
5.5.40.0100.03320.05
5.5.30.0070.03319.90
5.5.20.0030.03719.94
5.5.10.0030.04020.05
5.5.00.0070.06720.05

preferences:
51.28 ms | 401 KiB | 5 Q