3v4l.org

run code in 300+ PHP versions simultaneously
<?php throw new Exception (rand(1, 2));

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)
7.4.00.0030.01415.15
7.3.120.0070.00814.70
7.3.110.0090.00614.70
7.3.100.0080.00314.80
7.3.90.0040.01014.83
7.3.80.0070.01014.57
7.3.70.0120.00314.48
7.3.60.0030.01014.49
7.3.50.0000.01414.89
7.3.40.0070.00714.61
7.3.30.0030.01014.87
7.3.20.0000.00916.64
7.3.10.0040.01216.39
7.3.00.0060.00816.65
7.2.250.0070.01015.10
7.2.240.0100.01014.57
7.2.230.0090.00615.07
7.2.220.0070.01115.13
7.2.210.0100.00614.84
7.2.200.0110.00415.03
7.2.190.0140.00015.08
7.2.180.0030.00714.64
7.2.170.0080.00614.89
7.2.130.0080.00417.05
7.2.120.0040.00816.96
7.2.110.0060.00616.70
7.2.100.0000.01116.85
7.2.90.0000.01716.73
7.2.80.0070.00416.80
7.2.70.0050.00516.95
7.2.60.0070.00316.89
7.2.50.0030.00816.93
7.2.40.0030.01017.00
7.2.30.0030.01017.02
7.2.20.0030.00816.99
7.2.10.0040.01116.99
7.2.00.0000.01216.96
7.1.330.0070.00715.52
7.1.320.0030.01215.47
7.1.310.0050.01015.53
7.1.300.0080.00015.87
7.1.290.0070.00715.55
7.1.280.0050.00515.61
7.1.270.0030.00815.85
7.1.260.0070.00415.73
7.1.250.0120.00015.45
7.1.240.0000.00815.70
7.1.230.0070.00315.72
7.1.220.0100.00615.74
7.1.210.0030.00715.88
7.1.200.0030.00715.63
7.1.190.0040.00815.74
7.1.180.0040.00715.65
7.1.170.0080.00315.57
7.1.160.0040.00715.77
7.1.150.0030.00715.89
7.1.140.0060.00315.85
7.1.130.0090.00315.50
7.1.120.0030.00615.45
7.1.110.0040.00415.77
7.1.100.0030.00715.84
7.1.90.0030.00715.64
7.1.80.0110.00315.71
7.1.70.0030.00716.18
7.1.60.0040.00916.37
7.1.50.0030.00916.35
7.1.40.0040.00716.33
7.1.30.0060.00516.25
7.1.20.0040.00716.29
7.1.10.0060.00516.34
7.1.00.0080.00416.38
7.0.330.0030.00615.44
7.0.320.0000.01415.16
7.0.310.0030.01015.40
7.0.300.0060.00315.34
7.0.290.0060.00315.21
7.0.280.0080.00415.16
7.0.270.0000.00915.37
7.0.260.0060.00615.14
7.0.250.0030.00915.37
7.0.240.0080.00415.41
7.0.230.0040.00815.31
7.0.220.0000.01215.51
7.0.210.0000.01015.46
7.0.200.0050.00416.16
7.0.190.0050.00616.18
7.0.180.0030.01016.04
7.0.170.0030.01016.00
7.0.160.0020.00816.16
7.0.150.0080.00716.06
7.0.140.0030.00916.15
7.0.130.0060.00616.02
7.0.120.0020.01216.12
7.0.110.0020.00816.13
7.0.100.0030.00716.23
7.0.90.0050.00616.12
7.0.80.0030.00516.14
7.0.70.0010.00916.23
7.0.60.0020.00916.21
7.0.50.0050.00516.21
7.0.40.0050.00615.24
7.0.30.0020.00714.99
7.0.20.0030.00615.04
7.0.10.0050.00715.12
7.0.00.0050.00515.22
5.6.380.0040.00413.99
5.6.370.0050.00514.49
5.6.360.0080.00314.45
5.6.350.0000.00814.17
5.6.340.0030.01014.41
5.6.330.0030.00914.29
5.6.320.0100.00014.18
5.6.310.0040.01114.15
5.6.300.0120.01817.49
5.6.290.0070.03317.54
5.6.280.0080.02817.56
5.6.270.0070.04117.72
5.6.260.0030.03217.68
5.6.250.0050.02517.53
5.6.240.0060.02517.60
5.6.230.0030.02717.66
5.6.220.0050.03617.45
5.6.210.0070.04617.58
5.6.200.0050.02817.54
5.6.190.0050.02417.46
5.6.180.0030.02817.41
5.6.170.0040.02617.47
5.6.160.0040.02717.51
5.6.150.0120.02617.46
5.6.140.0050.02317.72
5.6.130.0040.02417.58
5.6.120.0030.02817.51
5.6.110.0050.02417.46
5.6.100.0080.03517.52
5.6.90.0050.02117.42
5.6.80.0100.03217.08
5.6.70.0030.02417.27
5.6.60.0040.02417.15
5.6.50.0050.02417.23
5.6.40.0090.03017.13
5.6.30.0060.02117.11
5.6.20.0050.03117.14
5.6.10.0030.03017.25
5.6.00.0050.02517.25
5.5.380.0000.02414.46
5.5.370.0030.02414.38
5.5.360.0030.02514.43
5.5.350.0050.02514.40
5.5.340.0020.02714.46
5.5.330.0050.02414.44
5.5.320.0050.02914.66
5.5.310.0020.03414.69
5.5.300.0080.01914.74
5.5.290.0080.01814.67
5.5.280.0030.02414.62
5.5.270.0040.02714.45
5.5.260.0020.02514.44
5.5.250.0030.02614.36
5.5.240.0010.02414.16
5.5.230.0000.02614.32
5.5.220.0020.02514.32
5.5.210.0060.01814.32
5.5.200.0030.02214.33
5.5.190.0050.02314.31
5.5.180.0020.02914.31
5.5.170.0060.00611.23
5.5.160.0030.02314.32
5.5.150.0030.02314.27
5.5.140.0040.02314.27
5.5.130.0050.02914.31
5.5.120.0020.04114.29
5.5.110.0060.02114.30
5.5.100.0030.04114.21
5.5.90.0020.02314.26
5.5.80.0050.02214.22
5.5.70.0050.02014.25
5.5.60.0020.02214.21
5.5.50.0020.02914.14
5.5.40.0040.02214.25
5.5.30.0060.02114.27
5.5.20.0020.04114.21
5.5.10.0020.02914.22
5.5.00.0030.02114.24
5.4.450.0030.02315.24
5.4.440.0040.02415.32
5.4.430.0030.02315.24
5.4.420.0020.02615.35
5.4.410.0040.02015.21
5.4.400.0020.04015.05
5.4.390.0070.02015.13
5.4.380.0030.02215.17
5.4.370.0060.02815.08
5.4.360.0080.02215.21
5.4.350.0040.02515.13
5.4.340.0000.02615.04
5.4.330.0000.01111.18
5.4.320.0030.02715.08
5.4.310.0020.02715.08
5.4.300.0060.01715.04
5.4.290.0060.02415.13
5.4.280.0060.03215.07
5.4.270.0030.02115.19
5.4.260.0010.02215.04
5.4.250.0030.02115.12
5.4.240.0040.02215.05
5.4.230.0020.02615.05
5.4.220.0050.02015.07
5.4.210.0020.02915.16
5.4.200.0050.01915.12
5.4.190.0050.01915.12
5.4.180.0050.02415.04
5.4.170.0080.02215.13
5.4.160.0050.01915.15
5.4.150.0020.03915.06
5.4.140.0050.02214.05
5.4.130.0060.02214.05
5.4.120.0000.02714.05
5.4.110.0100.02814.05
5.4.100.0060.01914.05
5.4.90.0060.01914.05
5.4.80.0050.01914.05
5.4.70.0040.02114.05
5.4.60.0060.01514.05
5.4.50.0030.02314.05
5.4.40.0050.02114.05
5.4.30.0040.02114.06
5.4.20.0060.02014.05
5.4.10.0020.02214.05
5.4.00.0000.02314.05
5.3.290.0060.02014.05
5.3.280.0030.03114.05
5.3.270.0050.02114.05
5.3.260.0000.04014.05
5.3.250.0070.03014.05
5.3.240.0050.01914.05
5.3.230.0030.02014.05
5.3.220.0140.02214.05
5.3.210.0100.02314.05
5.3.200.0020.02314.05
5.3.190.0030.02114.05
5.3.180.0030.02214.05
5.3.170.0040.01914.05
5.3.160.0000.03714.05
5.3.150.0060.01914.05
5.3.140.0030.02014.05
5.3.130.0060.01814.05
5.3.120.0020.02614.05
5.3.110.0040.02314.05
5.3.100.0020.02214.05
5.3.90.0000.02314.05
5.3.80.0000.02314.05
5.3.70.0020.02014.05
5.3.60.0050.02014.05
5.3.50.0060.01914.05
5.3.40.0020.02114.05
5.3.30.0030.02214.05
5.3.20.0000.02314.05
5.3.10.0000.02414.05
5.3.00.0040.02014.05

preferences:
39.55 ms | 400 KiB | 5 Q