3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct(Bar $bar) { die('hello world'); } } class Bar {} try { new Foo(New Bar); } catch (\Exception $e) { echo "ex"; }

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.0060.01216.61
8.3.50.0140.00622.01
8.3.40.0140.00018.50
8.3.30.0090.00618.89
8.3.20.0040.00420.05
8.3.10.0080.00021.84
8.3.00.0060.00619.25
8.2.180.0110.01118.29
8.2.170.0060.00922.96
8.2.160.0030.01022.02
8.2.150.0060.01024.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0030.00619.65
8.2.110.0100.00021.07
8.2.100.0060.00617.78
8.2.90.0030.00517.91
8.2.80.0040.00418.09
8.2.70.0050.00317.80
8.2.60.0060.00617.93
8.2.50.0000.00818.10
8.2.40.0040.00420.59
8.2.30.0050.00218.00
8.2.20.0000.00817.56
8.2.10.0030.00518.03
8.2.00.0000.00717.63
8.1.280.0120.00925.92
8.1.270.0080.00320.52
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0060.00323.89
8.1.230.0040.00720.97
8.1.220.0050.00317.74
8.1.210.0030.00518.77
8.1.200.0080.00017.35
8.1.190.0060.00317.23
8.1.180.0000.00718.10
8.1.170.0050.00318.51
8.1.160.0000.00722.12
8.1.150.0040.00418.81
8.1.140.0050.00317.29
8.1.130.0030.00317.74
8.1.120.0040.00417.30
8.1.110.0050.00317.29
8.1.100.0000.00717.39
8.1.90.0000.00817.29
8.1.80.0030.00517.29
8.1.70.0040.00417.37
8.1.60.0030.00617.54
8.1.50.0080.00017.52
8.1.40.0030.00717.54
8.1.30.0000.00817.57
8.1.20.0040.00417.55
8.1.10.0040.00417.54
8.1.00.0050.00317.39
8.0.300.0030.00319.98
8.0.290.0040.00416.75
8.0.280.0000.00718.32
8.0.270.0030.00317.14
8.0.260.0030.00317.18
8.0.250.0060.00016.82
8.0.240.0000.00716.97
8.0.230.0070.00016.79
8.0.220.0060.00016.89
8.0.210.0040.00416.75
8.0.200.0030.00316.78
8.0.190.0030.00416.96
8.0.180.0000.00716.80
8.0.170.0000.00816.77
8.0.160.0080.00016.92
8.0.150.0040.00416.86
8.0.140.0070.00016.84
8.0.130.0030.00313.29
8.0.120.0080.00016.75
8.0.110.0040.00416.84
8.0.100.0000.00816.70
8.0.90.0070.00016.71
8.0.80.0060.01016.79
8.0.70.0030.00316.92
8.0.60.0000.00716.76
8.0.50.0000.00716.86
8.0.30.0130.01117.17
8.0.20.0100.01117.44
8.0.10.0050.00316.95
8.0.00.0100.00716.78
7.4.330.0050.00015.03
7.4.320.0030.00316.38
7.4.300.0000.00716.45
7.4.290.0030.00316.39
7.4.280.0040.00716.42
7.4.270.0070.00016.45
7.4.260.0070.00016.29
7.4.250.0070.00016.47
7.4.240.0040.00416.48
7.4.230.0000.00816.62
7.4.220.0090.00916.45
7.4.210.0080.00616.43
7.4.200.0000.00716.64
7.4.160.0070.00716.62
7.4.150.0080.01117.40
7.4.140.0100.00717.86
7.4.130.0070.01216.43
7.4.120.0070.01116.42
7.4.110.0130.01216.47
7.4.100.0150.01216.37
7.4.90.0110.00616.44
7.4.80.0110.00519.39
7.4.70.0060.01016.21
7.4.60.0100.00716.46
7.4.50.0040.00016.52
7.4.40.0040.01116.49
7.4.30.0120.00916.58
7.4.00.0030.01014.82
7.3.330.0060.00013.25
7.3.320.0090.00613.30
7.3.310.0070.00016.28
7.3.300.0070.00016.25
7.3.290.0030.00316.35
7.3.280.0110.00716.32
7.3.270.0130.01017.40
7.3.260.0130.00316.27
7.3.250.0070.01016.36
7.3.240.0060.01516.14
7.3.230.0030.01316.39
7.3.210.0130.00316.26
7.3.200.0060.01219.39
7.3.190.0120.00316.23
7.3.180.0110.01016.29
7.3.170.0090.01216.29
7.3.160.0130.00316.25
7.2.330.0100.00716.37
7.2.320.0140.01516.46
7.2.310.0130.00416.79
7.2.300.0130.00316.59
7.2.290.0090.01316.54
7.2.00.0000.01019.53
7.1.100.0060.00617.70
7.1.70.0070.00317.22
7.1.60.0070.01319.46
7.1.50.0180.00716.86
7.1.00.0070.07722.31
7.0.200.0080.00816.85
7.0.140.0070.06022.10
7.0.60.0030.04019.96
7.0.50.0070.07717.87
7.0.40.0000.04720.04
7.0.30.0530.05720.24
7.0.20.0370.07320.16
7.0.10.0070.08020.23
7.0.00.0070.06720.16
5.6.280.0070.07020.79
5.6.210.0100.07320.72
5.6.200.0070.08018.29
5.6.190.0030.08720.61
5.6.180.0470.07020.52
5.6.170.0330.06720.48
5.6.160.0030.09320.57
5.6.150.0130.06318.18
5.6.140.0100.07718.27
5.6.130.0000.04718.11
5.6.120.0070.04720.97
5.6.110.0130.08020.89
5.6.100.0100.06720.97
5.6.90.0070.08021.02
5.6.80.0130.07320.44
5.5.350.0330.07320.30
5.5.340.0100.03718.07
5.5.330.0130.06320.34
5.5.320.0130.04320.33
5.5.310.0200.08320.35
5.5.300.0070.04017.95
5.5.290.0030.08318.01
5.5.280.0070.06720.77
5.5.270.0070.07720.75
5.5.260.0070.08020.96
5.5.250.0070.04020.78
5.5.240.0230.06020.36
5.4.450.0630.05319.66
5.4.440.0330.05019.38
5.4.430.0100.05319.47
5.4.420.0230.05019.54
5.4.410.0200.05019.35
5.4.400.0200.05018.77
5.4.390.0200.07018.50
5.4.380.0330.04318.45
5.4.370.0230.06718.50
5.4.360.0200.07018.72
5.4.350.0270.04718.81
5.4.340.0230.06018.77
5.4.320.0130.06018.50
5.4.310.0270.05318.71
5.4.300.0170.07318.59
5.4.290.0370.04018.74
5.4.280.0200.05318.80
5.4.270.0270.04018.54
5.4.260.0130.05318.43
5.4.250.0170.05318.79
5.4.240.0100.06018.78
5.4.230.0170.05018.50
5.4.220.0130.05718.50
5.4.210.0200.05018.77
5.4.200.0130.05316.79
5.4.190.0130.07718.66
5.4.180.0130.05718.70
5.4.170.0130.05718.70
5.4.160.0130.05718.75
5.4.150.0100.06018.48
5.4.140.0130.05716.24
5.4.130.0370.03716.27
5.4.120.0070.06016.21
5.4.110.0170.05016.44
5.4.100.0230.06316.25
5.4.90.0170.05316.17
5.4.80.0130.05316.25
5.4.70.0200.04716.31
5.4.60.0170.05016.27
5.4.50.0170.05016.26
5.4.40.0130.05716.41
5.4.30.0200.04316.22
5.4.20.0130.06016.21
5.4.10.0130.05016.39
5.4.00.0170.05715.79
5.3.290.0170.05314.84
5.3.280.0230.04714.59
5.3.270.0130.05714.60
5.3.260.0230.07014.78
5.3.250.0100.05714.60
5.3.240.0170.05314.72
5.3.230.0200.05014.57
5.3.220.0130.06014.65
5.3.210.0300.06314.60
5.3.200.0170.05714.60
5.3.190.0130.05314.67
5.3.180.0200.05014.66
5.3.170.0170.05014.84
5.3.160.0100.07014.61
5.3.150.0230.05014.61
5.3.140.0230.06014.75
5.3.130.0130.06014.75
5.3.120.0170.05314.54
5.3.110.0130.07714.66
5.3.100.0200.06014.14
5.3.90.0200.07314.05
5.3.80.0200.06714.11
5.3.70.0170.05014.05
5.3.60.0100.05714.10
5.3.50.0130.05714.12
5.3.40.0230.05314.01
5.3.30.0100.05714.05
5.3.20.0130.05013.90
5.3.10.0130.07013.74
5.3.00.0230.05013.77
5.2.170.0130.05311.16
5.2.160.0070.04711.18
5.2.150.0170.04011.18
5.2.140.0070.04711.24
5.2.130.0170.03711.32
5.2.120.0100.04311.13
5.2.110.0170.04011.21
5.2.100.0130.05311.23
5.2.90.0130.04011.20
5.2.80.0100.04711.30
5.2.70.0130.05011.12
5.2.60.0100.04711.15
5.2.50.0100.04311.13
5.2.40.0070.05311.11
5.2.30.0100.05710.96
5.2.20.0170.04711.01
5.2.10.0170.03710.88
5.2.00.0300.04010.71
5.1.60.0170.04010.19
5.1.50.0130.04310.04
5.1.40.0070.05310.18
5.1.30.0100.05010.38
5.1.20.0100.04710.44
5.1.10.0130.03310.20
5.1.00.0100.03710.27
5.0.50.0100.0278.64
5.0.40.0130.0308.34
5.0.30.0030.0508.12
5.0.20.0100.0338.12
5.0.10.0100.0378.18
5.0.00.0130.0438.11
4.4.90.0130.0235.98
4.4.80.0000.0275.90
4.4.70.0130.0135.89
4.4.60.0070.0205.90
4.4.50.0030.0235.93
4.4.40.0070.0375.88
4.4.30.0170.0105.90
4.4.20.0070.0206.04
4.4.10.0070.0306.05
4.4.00.0030.0406.04
4.3.110.0070.0205.92
4.3.100.0100.0175.84
4.3.90.0030.0235.78
4.3.80.0070.0305.87
4.3.70.0030.0235.76
4.3.60.0070.0205.77
4.3.50.0030.0235.77
4.3.40.0070.0305.84
4.3.30.0030.0304.68
4.3.20.0070.0174.53
4.3.10.0030.0204.48
4.3.00.0100.0236.91

preferences:
44.89 ms | 401 KiB | 5 Q