3v4l.org

run code in 200+ PHP versions simultaneously
<?php $a = 1; $b = 0; // проверьте $b = null; $b = "0"; $b = 0.2; .. try { if((float) $b === 0.0) throw new Exception('деление на ноль'); echo ($a / $b); } catch(Throwable $e) { echo $e->getMessage(); }

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.0070.01015.15
7.3.120.0100.00714.95
7.3.110.0030.01414.82
7.3.100.0120.00314.98
7.3.90.0060.00314.98
7.3.80.0060.00314.86
7.3.70.0090.00914.86
7.3.60.0100.00314.85
7.3.50.0100.00014.76
7.3.40.0060.00314.89
7.3.30.0000.01215.00
7.3.20.0110.00416.68
7.3.10.0060.00716.40
7.3.00.0070.00616.51
7.2.240.0100.01014.85
7.2.230.0030.01314.95
7.2.220.0100.00714.86
7.2.210.0110.00714.58
7.2.200.0100.00714.87
7.2.190.0060.00914.71
7.2.180.0060.00915.24
7.2.170.0030.00614.84
7.2.160.0070.00415.03
7.2.150.0070.00717.11
7.2.140.0110.00416.69
7.2.130.0070.00516.57
7.2.120.0060.00616.66
7.2.110.0070.00416.86
7.2.100.0050.01116.90
7.2.90.0110.00616.78
7.2.80.0080.00516.90
7.2.70.0050.01016.87
7.2.60.0070.00716.93
7.2.50.0100.00616.69
7.2.40.0120.00516.79
7.2.30.0060.00816.60
7.2.20.0070.00916.82
7.2.10.0060.00616.88
7.2.00.0100.00717.67
7.1.330.0080.00815.88
7.1.320.0060.00915.95
7.1.310.0000.01315.72
7.1.300.0030.01015.76
7.1.290.0030.00615.57
7.1.280.0030.01015.90
7.1.270.0060.00615.81
7.1.260.0110.00415.48
7.1.250.0090.00715.62
7.1.200.0000.01315.46
7.1.100.0060.00618.09
7.1.70.0060.00916.79
7.1.60.0130.00719.90
7.1.50.0030.01917.09
7.1.00.0070.07322.36
7.0.200.0490.00014.70
7.0.100.0230.07020.07
7.0.90.0030.07020.02
7.0.80.0100.07719.85
7.0.70.0200.08019.95
7.0.60.0000.05319.96
7.0.50.0070.07020.34
7.0.40.0070.08320.02
7.0.30.0170.07320.04
7.0.20.0070.05020.05
7.0.10.0030.09020.13
7.0.00.0130.04720.09
5.6.280.0030.07021.04
5.6.250.0100.04020.76
5.6.240.0000.05320.75
5.6.230.0100.08020.50
5.6.220.0070.08320.61
5.6.210.0070.04020.66
5.6.200.0070.06021.08
5.6.190.0100.07321.11
5.6.180.0070.06721.00
5.6.170.0130.04321.00
5.6.160.0100.07021.11
5.6.150.0230.06721.16
5.6.140.0270.06720.96
5.6.130.0170.06721.13
5.6.120.0200.06721.01
5.6.110.0100.06020.89
5.6.100.0200.07020.92
5.6.90.0070.06721.05
5.6.80.0070.08020.52
5.6.70.0030.06720.55
5.6.60.0170.06020.53
5.6.50.0030.04720.32
5.6.40.0100.05320.43
5.6.30.0100.03720.53
5.6.20.0100.06020.45
5.6.10.0000.04320.46
5.6.00.0130.03020.34
5.5.380.0030.05020.42
5.5.370.0130.04020.42
5.5.360.0170.04320.35
5.5.350.0000.09020.44
5.5.340.0000.05720.80
5.5.330.0130.06020.76
5.5.320.0100.06720.64
5.5.310.0030.08020.64
5.5.300.0130.07320.83
5.5.290.0100.06720.86
5.5.280.0070.06720.72
5.5.270.0070.05020.88
5.5.260.0030.06320.90
5.5.250.0100.04020.71
5.5.240.0030.08020.26
5.5.230.0030.05020.30
5.5.220.0000.08020.19
5.5.210.0070.05720.14
5.5.200.0200.05720.16
5.5.190.0130.07320.23
5.5.180.0130.07020.27
5.5.160.0030.03720.27
5.5.150.0100.03320.24
5.5.140.0030.04320.25
5.5.130.0030.04020.23
5.5.120.0000.04020.21
5.5.110.0030.03720.07
5.5.100.0000.03720.17
5.5.90.0030.03719.91
5.5.80.0170.03320.00
5.5.70.0000.03720.05
5.5.60.0100.03020.05
5.5.50.0100.02720.14
5.5.40.0000.04320.13
5.5.30.0100.02720.05
5.5.20.0030.03320.02
5.5.10.0030.04720.09
5.5.00.0030.03720.04
5.4.450.0170.07019.17
5.4.440.0070.06719.36
5.4.430.0100.07319.37
5.4.420.0070.07319.44
5.4.410.0070.07719.43
5.4.400.0100.04019.13
5.4.390.0030.05019.10
5.4.380.0100.07019.09
5.4.370.0000.06018.88
5.4.360.0030.07019.14
5.4.350.0070.04019.16
5.4.340.0170.06318.84
5.4.320.0030.03719.02
5.4.310.0070.03318.87
5.4.300.0030.03719.02
5.4.290.0070.03319.16
5.4.280.0030.03719.13
5.4.270.0030.03719.02
5.4.260.0030.03718.84
5.4.250.0070.03319.09
5.4.240.0000.03719.12
5.4.230.0000.03719.15
5.4.220.0030.03318.92
5.4.210.0000.04019.07
5.4.200.0070.03719.04
5.4.190.0030.03319.22
5.4.180.0000.03319.22
5.4.170.0070.03019.04
5.4.160.0000.04318.82
5.4.150.0100.03319.11
5.4.140.0070.04316.43
5.4.130.0000.04316.46
5.4.120.0030.06016.43
5.4.110.0170.02716.52
5.4.100.0030.04316.34
5.4.90.0000.03316.43
5.4.80.0070.03316.33
5.4.70.0030.03716.34
5.4.60.0000.04016.48
5.4.50.0070.03016.30
5.4.40.0000.04016.42
5.4.30.0000.03316.38
5.4.20.0030.03316.32
5.4.10.0000.04016.47
5.4.00.0030.04015.89
5.3.290.0070.04014.58
5.3.280.0070.03014.72
5.3.270.0030.03014.70
5.3.260.0030.03714.59
5.3.250.0070.03314.72
5.3.240.0070.03014.65
5.3.230.0000.04714.65
5.3.220.0100.03014.61
5.3.210.0100.03314.57
5.3.200.0000.03314.54
5.3.190.0000.04014.66
5.3.180.0000.04014.52
5.3.170.0070.03314.67
5.3.160.0000.04014.67
5.3.150.0030.03714.66
5.3.140.0070.03714.61
5.3.130.0000.04014.60
5.3.120.0100.02314.47
5.3.110.0000.04014.47
5.3.100.0030.03714.13
5.3.90.0000.04013.95
5.3.80.0070.03314.06
5.3.70.0030.03313.98
5.3.60.0070.02714.10
5.3.50.0070.03313.84
5.3.40.0030.03713.95
5.3.30.0000.04713.96
5.3.20.0000.03713.58
5.3.10.0030.03313.71
5.3.00.0000.07313.72
5.2.170.0000.03011.19
5.2.160.0000.02711.16
5.2.150.0000.03311.00
5.2.140.0000.03311.27
5.2.130.0070.02311.02
5.2.120.0030.03011.15
5.2.110.0030.04011.12
5.2.100.0030.06011.16
5.2.90.0000.03011.01
5.2.80.0170.04011.09
5.2.70.0030.06310.99
5.2.60.0000.05011.03
5.2.50.0030.05711.04
5.2.40.0100.03010.88
5.2.30.0100.05311.10
5.2.20.0070.05710.90
5.2.10.0030.05710.78
5.2.00.0000.03710.72
5.1.60.0070.04310.07
5.1.50.0070.04710.05
5.1.40.0030.05010.05
5.1.30.0070.04310.25
5.1.20.0030.05710.27
5.1.10.0000.03010.05
5.1.00.0030.05710.09
5.0.50.0000.0378.53
5.0.40.0170.0308.52
5.0.30.0030.0308.52
5.0.20.0100.0408.52
5.0.10.0000.0408.52
5.0.00.0030.0638.52
4.4.90.0000.0178.52
4.4.80.0030.0108.52
4.4.70.0000.0378.52
4.4.60.0070.0338.52
4.4.50.0000.0308.52
4.4.40.0030.0308.52
4.4.30.0070.0078.52
4.4.20.0070.0278.52
4.4.10.0030.0308.52
4.4.00.0000.0478.52
4.3.110.0000.0208.52
4.3.100.0100.0108.52
4.3.90.0030.0208.52
4.3.80.0030.0378.52
4.3.70.0000.0208.52
4.3.60.0000.0238.52
4.3.50.0030.0138.52
4.3.40.0000.0238.52
4.3.30.0000.0178.52
4.3.20.0030.0308.52
4.3.10.0030.0238.52
4.3.00.0000.0338.52