3v4l.org

run code in 300+ PHP versions simultaneously
<?php a: print_r('bar'); try { throw new Exception('foo'); } catch(Exception $e) { goto a; }

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.0300.01318.30
8.3.50.0310.01322.91
8.3.40.0200.02618.67
8.3.30.0260.01019.05
8.3.20.0170.00720.21
8.3.10.0270.01720.50
8.3.00.0130.01319.26
8.2.180.0290.02016.75
8.2.170.0200.01722.96
8.2.160.0250.00920.42
8.2.150.0210.01224.18
8.2.140.0170.00324.66
8.2.130.0100.01026.16
8.2.120.0210.00020.97
8.2.110.0170.00720.30
8.2.100.0130.01618.04
8.2.90.0070.01019.27
8.2.80.0060.01117.97
8.2.70.0000.01917.50
8.2.60.0070.01117.80
8.2.50.0030.01718.07
8.2.40.0100.01018.16
8.2.30.0090.00619.41
8.2.20.0090.00917.78
8.2.10.0110.00718.13
8.2.00.0070.01017.81
8.1.280.0360.01425.92
8.1.270.0290.01023.83
8.1.260.0090.00926.35
8.1.250.0270.00328.09
8.1.240.0030.01923.80
8.1.230.0250.00419.04
8.1.220.0070.01017.76
8.1.210.0090.00918.77
8.1.200.0130.01017.35
8.1.190.0060.01217.35
8.1.180.0140.00318.10
8.1.170.0030.01318.40
8.1.160.0070.01021.96
8.1.150.0060.01318.85
8.1.140.0030.01417.47
8.1.130.0120.00417.76
8.1.120.0070.01117.41
8.1.110.0030.01417.59
8.1.100.0060.01017.52
8.1.90.0090.00917.54
8.1.80.0070.01017.52
8.1.70.0060.01217.38
8.1.60.0100.01017.59
8.1.50.0030.01517.53
8.1.40.0070.01017.58
8.1.30.0040.01317.69
8.1.20.0100.00717.55
8.1.10.0120.00617.65
8.1.00.0070.01417.62
8.0.300.0060.01018.77
8.0.290.0110.00716.63
8.0.280.0060.00918.19
8.0.270.0030.01217.14
8.0.260.0100.00717.13
8.0.250.0120.00316.79
8.0.240.0170.00016.74
8.0.230.0030.01216.91
8.0.220.0090.00616.68
8.0.210.0000.01516.76
8.0.200.0120.00616.79
8.0.190.0090.00616.75
8.0.180.0100.00716.83
8.0.170.0100.00616.77
8.0.160.0090.01016.78
8.0.150.0070.01016.90
8.0.140.0110.01116.82
8.0.130.0030.01213.34
8.0.120.0070.01316.74
8.0.110.0100.00716.72
8.0.100.0070.01016.70
8.0.90.0100.00716.74
8.0.80.0230.03616.88
8.0.70.0080.00816.93
8.0.60.0120.00316.94
8.0.50.0080.00816.72
8.0.30.0340.04916.90
8.0.20.0470.06617.40
8.0.10.0100.00616.77
8.0.00.0460.02916.75
7.4.330.0090.00615.00
7.4.320.0100.00716.39
7.4.300.0030.01416.34
7.4.290.0080.00816.36
7.4.280.0070.01016.39
7.4.270.0060.00916.40
7.4.260.0090.00616.42
7.4.250.0100.00716.44
7.4.240.0060.01016.35
7.4.230.0090.00616.38
7.4.220.0330.03616.40
7.4.210.0300.02116.34
7.4.200.0000.01516.45
7.4.160.0300.04916.52
7.4.150.0320.04917.40
7.4.140.0420.03517.86
7.4.130.0580.05016.43
7.4.120.0330.04816.42
7.4.110.0570.01716.43
7.4.100.0490.06116.64
7.4.90.0330.04316.41
7.4.80.0480.04819.39
7.4.70.0580.04316.46
7.4.60.0320.03516.50
7.4.50.0060.01916.55
7.4.40.0420.04816.36
7.4.30.0440.04416.53
7.3.330.0080.01213.14
7.3.320.0140.00313.10
7.3.310.0060.00916.13
7.3.300.0060.01015.94
7.3.290.0230.05216.05
7.3.280.0230.04716.22
7.3.270.0400.04017.40
7.3.260.0610.04616.30
7.3.250.0400.03916.20
7.3.240.0340.04716.37
7.3.230.0370.05816.39
7.3.210.0440.03216.09
7.3.200.0360.03616.27
7.3.190.0330.03616.25
7.3.180.0310.03716.27
7.3.170.0400.04916.46
7.3.160.0280.03916.17
7.3.120.0290.01614.69
7.3.110.0130.01714.46
7.3.100.0100.01714.61
7.3.90.0070.02114.64
7.3.80.0200.01014.89
7.3.70.0160.01314.53
7.3.60.0130.01914.73
7.3.50.0100.02314.58
7.3.40.0170.01414.81
7.3.30.0140.02414.77
7.3.20.0320.01116.63
7.3.10.0100.02316.54
7.3.00.0230.01316.49
7.2.330.0910.05316.47
7.2.320.0350.03516.54
7.2.310.0360.04216.52
7.2.300.0450.05916.58
7.2.290.0470.03716.54
7.2.240.0140.02714.90
7.2.230.0100.02315.01
7.2.220.0260.01315.07
7.2.210.0180.01214.98
7.2.200.0200.01014.87
7.2.190.0230.02014.82
7.2.180.0220.00614.66
7.2.170.0110.02114.61
7.2.160.0190.01314.76
7.2.150.0160.01616.62
7.2.140.0130.02316.71
7.2.130.0290.01316.82
7.2.120.0190.01216.80
7.2.110.0170.01716.84
7.2.100.0100.02616.56
7.2.90.0130.02416.81
7.2.80.0110.02116.77
7.2.70.0210.01816.82
7.2.60.0140.01716.87
7.2.50.0220.00716.78
7.2.40.0170.02116.51
7.2.30.0170.02016.45
7.2.20.0170.01716.57
7.2.10.0200.01716.88
7.2.00.0100.02018.05
7.1.330.0220.01615.77
7.1.320.0170.01415.82
7.1.310.0210.02115.61
7.1.300.0140.02115.66
7.1.290.0070.03515.42
7.1.280.0170.02015.64
7.1.270.0140.02115.68
7.1.260.0190.01615.34
7.1.250.0130.02215.37
7.1.100.0000.01918.09
7.1.70.0170.02417.06
7.1.60.0220.02819.61
7.1.50.0170.03017.12
7.0.200.0200.01616.70

preferences:
45.7 ms | 401 KiB | 5 Q