3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { } function baz(stdClass $bar) { } $bar = new foo; baz($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.0070.01418.43
8.3.50.0070.00716.50
8.3.40.0040.01118.66
8.3.30.0120.00618.68
8.3.20.0090.00020.13
8.3.10.0050.00321.85
8.3.00.0040.00421.00
8.2.180.0100.00718.31
8.2.170.0140.00022.96
8.2.160.0070.00721.99
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0070.00020.36
8.2.120.0040.00426.35
8.2.110.0030.00620.54
8.2.100.0000.01117.91
8.2.90.0050.00319.22
8.2.80.0090.00017.97
8.2.70.0040.00417.50
8.2.60.0060.00317.93
8.2.50.0060.00318.10
8.2.40.0050.00322.14
8.2.30.0040.00421.02
8.2.20.0000.00717.86
8.2.10.0040.00418.03
8.2.00.0030.00518.01
8.1.280.0140.00425.92
8.1.270.0080.00022.00
8.1.260.0030.00526.35
8.1.250.0080.00028.09
8.1.240.0030.00622.69
8.1.230.0060.00619.07
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0030.00717.38
8.1.190.0060.00317.35
8.1.180.0040.00418.10
8.1.170.0000.00818.46
8.1.160.0040.00419.02
8.1.150.0000.00718.80
8.1.140.0040.00419.50
8.1.130.0070.00018.75
8.1.120.0030.00317.45
8.1.110.0040.00417.43
8.1.100.0040.00417.37
8.1.90.0040.00417.42
8.1.80.0000.00717.36
8.1.70.0000.00717.39
8.1.60.0000.00817.55
8.1.50.0000.00817.46
8.1.40.0040.00417.45
8.1.30.0040.00717.51
8.1.20.0000.00817.70
8.1.10.0000.00917.53
8.1.00.0000.00817.38
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0070.00018.43
8.0.270.0000.00717.10
8.0.260.0030.00516.81
8.0.250.0000.00616.96
8.0.240.0070.00016.90
8.0.230.0000.00816.91
8.0.220.0000.00716.76
8.0.210.0000.00716.90
8.0.200.0070.00016.82
8.0.190.0060.00316.85
8.0.180.0000.00716.83
8.0.170.0000.00716.93
8.0.160.0040.00416.94
8.0.150.0110.00016.89
8.0.140.0080.00016.83
8.0.130.0000.00713.32
8.0.120.0030.00516.71
8.0.110.0040.00416.86
8.0.100.0040.00416.75
8.0.90.0070.00016.77
8.0.80.0060.01316.83
8.0.70.0000.00716.88
8.0.60.0080.00016.82
8.0.50.0040.00416.82
8.0.30.0120.00517.03
8.0.20.0130.00517.40
8.0.10.0040.00417.05
8.0.00.0060.01216.64
7.4.330.0050.00015.55
7.4.320.0030.00316.57
7.4.300.0000.00616.54
7.4.290.0040.00416.48
7.4.280.0040.00416.48
7.4.270.0070.00016.52
7.4.260.0070.00016.48
7.4.250.0000.00716.45
7.4.240.0040.00416.47
7.4.230.0000.00716.31
7.4.220.0100.00716.57
7.4.210.0090.00716.59
7.4.200.0030.00616.25
7.4.160.0080.00816.51
7.4.150.0000.01917.40
7.4.140.0120.00717.86
7.4.130.0120.00916.72
7.4.120.0090.00916.54
7.4.110.0070.01416.45
7.4.100.0180.00716.49
7.4.90.0000.01716.40
7.4.80.0140.00319.39
7.4.70.0030.01616.50
7.4.60.0170.00016.58
7.4.50.0070.00716.30
7.4.40.0070.01116.36
7.4.30.0100.00616.39
7.4.00.0140.00014.87
7.3.330.0000.00513.09
7.3.320.0030.00313.16
7.3.310.0040.00416.13
7.3.300.0050.00316.39
7.3.290.0000.01516.32
7.3.280.0090.00816.32
7.3.270.0100.00717.40
7.3.260.0090.00816.51
7.3.250.0120.01016.45
7.3.240.0070.00916.56
7.3.230.0140.00316.32
7.3.210.0090.00916.41
7.3.200.0160.00616.54
7.3.190.0090.01316.51
7.3.180.0050.01016.37
7.3.170.0090.00616.16
7.3.160.0100.00516.61
7.2.330.0060.01116.55
7.2.320.0150.00816.51
7.2.310.0040.01216.28
7.2.300.0160.00616.56
7.2.290.0060.01016.64
7.2.60.0880.00715.06
7.2.00.0030.01019.34
7.1.200.0040.00415.67
7.1.100.0120.00018.04
7.1.70.0040.00417.06
7.1.60.0470.01333.22
7.1.50.0470.01333.00
7.1.40.0430.01732.45
7.1.30.0400.00732.48
7.1.20.0370.01032.55
7.1.10.0170.01314.69
7.1.00.0330.01714.62
7.0.200.0300.01014.74
7.0.190.0200.01015.00
7.0.180.0400.01014.31
7.0.170.0270.00714.31
7.0.160.0230.01014.37
7.0.150.0230.01014.61
7.0.140.0400.00314.40
7.0.130.0330.01014.68
7.0.120.0430.01014.61
7.0.110.0300.01014.51
7.0.100.0330.00714.64
7.0.90.0300.00314.28
7.0.80.0270.00714.42
7.0.70.0230.01014.57
7.0.60.0300.00314.32
7.0.50.0670.01014.39
7.0.40.0270.00714.45
7.0.30.0230.01014.72
7.0.20.0230.00714.38
7.0.10.0270.01314.62
7.0.00.0230.00714.53

preferences:
53.81 ms | 400 KiB | 5 Q