3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function ($errno, $errstr, $errfile, $errline) { $namespace = 'ajf\ErrorExceptions\Dynamic'; $className = implode('', explode(' ', ucwords($errstr))); eval("namespace $namespace { class $className extends \ErrorException {} }"); $fullClassName = $namespace . '\\' . $className; throw new $fullClassName($errstr, 0, $errno, $errfile, $errline); }); try { $repent = sin("123abc"); } catch (ajf\ErrorExceptions\Dynamic\ANonWellFormedNumericValueEncountered $e) { echo "praise be to zend_is_numeric_string_ex: $e"; }

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.70.0040.01116.88
8.3.60.0110.00716.63
8.3.50.0100.00821.16
8.3.40.0090.00618.57
8.3.30.0100.00718.79
8.3.20.0070.00020.21
8.3.10.0040.00421.86
8.3.00.0080.00023.61
8.2.180.0090.00616.63
8.2.170.0140.00722.96
8.2.160.0100.00319.45
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0050.00321.06
8.2.120.0000.00726.35
8.2.110.0100.00022.31
8.2.100.0090.00318.04
8.2.90.0000.00719.23
8.2.80.0000.00817.97
8.2.70.0060.00317.50
8.2.60.0040.00417.93
8.2.50.0000.00818.09
8.2.40.0080.00022.26
8.2.30.0070.00019.34
8.2.20.0050.00217.81
8.2.10.0050.00218.00
8.2.00.0000.00818.07
8.1.280.0090.00625.92
8.1.270.0130.00622.26
8.1.260.0050.00228.09
8.1.250.0070.00028.09
8.1.240.0100.00022.02
8.1.230.0080.00417.70
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0030.00717.35
8.1.190.0080.00017.22
8.1.180.0000.00718.10
8.1.170.0030.00518.47
8.1.160.0040.00420.69
8.1.150.0040.00419.07
8.1.140.0000.00919.53
8.1.130.0070.00017.46
8.1.120.0070.00017.48
8.1.110.0070.00017.39
8.1.100.0030.00617.38
8.1.90.0000.00717.36
8.1.80.0080.00017.48
8.1.70.0070.00017.42
8.1.60.0080.00017.65
8.1.50.0000.00817.44
8.1.40.0050.00317.59
8.1.30.0080.00017.71
8.1.20.0000.00817.65
8.1.10.0040.00417.49
8.1.00.0040.00417.45
8.0.300.0030.00518.77
8.0.290.0000.00816.75
8.0.280.0030.00318.44
8.0.270.0000.00717.16
8.0.260.0000.00716.83
8.0.250.0030.00316.93
8.0.240.0000.00816.96
8.0.230.0030.00316.82
8.0.220.0040.00416.85
8.0.210.0090.00016.88
8.0.200.0000.00617.08
8.0.190.0080.00017.06
8.0.180.0040.00417.03
8.0.170.0030.00617.05
8.0.160.0040.00416.92
8.0.150.0070.00016.78
8.0.140.0050.00216.83
8.0.130.0050.00013.39
8.0.120.0080.00016.92
8.0.110.0020.00516.85
8.0.100.0050.00216.84
8.0.90.0040.00417.03
8.0.80.0120.00316.88
8.0.70.0060.00316.83
8.0.60.0050.00216.96
8.0.50.0000.00817.02
8.0.30.0080.01116.98
8.0.20.0090.01017.40
8.0.10.0000.00716.98
8.0.00.0110.01016.79
7.4.330.0020.00216.84
7.4.320.0050.00216.52
7.4.300.0040.00416.52
7.4.290.0000.00716.43
7.4.280.0030.00616.61
7.4.270.0040.00416.65
7.4.260.0000.00716.63
7.4.250.0000.00716.35
7.4.240.0000.00716.61
7.4.230.0000.00716.42
7.4.220.0160.00716.50
7.4.210.0080.00716.57
7.4.200.0000.00716.45
7.4.160.0180.00316.57
7.4.150.0150.00317.40
7.4.140.0140.00717.86
7.4.130.0110.00816.62
7.4.120.0030.01516.66
7.4.110.0090.00916.59
7.4.100.0120.00916.66
7.4.90.0030.01616.44
7.4.80.0120.01219.39
7.4.70.0100.00716.39
7.4.60.0000.01616.48
7.4.50.0030.01316.49
7.4.40.0170.00716.52
7.4.30.0100.01016.73
7.4.00.0070.01015.09
7.3.330.0000.00513.69
7.3.320.0030.00313.67
7.3.310.0030.00516.66
7.3.300.0000.00716.70
7.3.290.0030.00316.62
7.3.280.0080.00916.61
7.3.270.0190.00017.40
7.3.260.0140.00716.65
7.3.250.0100.00816.62
7.3.240.0110.00616.72
7.3.230.0070.01716.68
7.3.210.0110.00616.59
7.3.200.0130.01019.39
7.3.190.0100.00716.80
7.3.180.0100.00716.74
7.3.170.0090.01216.69
7.3.160.0070.01016.93
7.3.10.0060.00616.90
7.3.00.0110.00017.10
7.2.330.0130.01017.03
7.2.320.0120.01116.66
7.2.310.0090.00916.91
7.2.300.0060.01116.80
7.2.290.0080.00816.58
7.2.130.0030.00917.30
7.2.120.0070.00717.43
7.2.110.0040.00816.93
7.2.100.0030.01017.26
7.2.90.0130.00017.34
7.2.80.0080.00417.08
7.2.70.0140.00317.11
7.2.60.0030.00917.23
7.2.50.0030.00917.21
7.2.40.0090.00617.35
7.2.30.0090.00317.44
7.2.20.0000.00917.27
7.2.10.0070.00417.32
7.2.00.0060.01118.54
7.1.250.0030.00716.21
7.1.200.0090.00616.11
7.1.100.0040.01218.30
7.1.70.0030.00617.15
7.1.60.0110.01419.40
7.1.50.0000.01117.39
7.1.00.0000.07722.52
7.0.200.1760.00315.13
7.0.60.0200.06722.03
7.0.50.0070.05318.31
7.0.40.0070.08320.21
7.0.30.0230.04320.55
7.0.20.0270.08720.35
7.0.10.0070.04020.41
7.0.00.0030.09020.41
5.6.280.0000.03321.01
5.6.210.0030.06720.77
5.6.200.0070.07318.54
5.6.190.0070.04320.75
5.6.180.0230.08320.73
5.6.170.0270.05020.87
5.6.160.0070.05320.71
5.6.150.0030.04718.43
5.6.140.0070.08318.46
5.6.130.0030.04718.43
5.6.120.0130.07721.28
5.6.110.0030.05321.36
5.6.100.0030.09721.28
5.6.90.0100.09021.27
5.6.80.0070.08020.67
5.5.350.0030.06020.70
5.5.340.0070.04718.14
5.5.330.0170.07720.72
5.5.320.0430.06320.50
5.5.310.0300.06720.74
5.5.300.0000.08318.21
5.5.290.0030.04318.27
5.5.280.0000.05020.98
5.5.270.0170.07021.19
5.5.260.0070.05720.96
5.5.250.0030.07720.89
5.5.240.0100.03020.64

preferences:
58.21 ms | 401 KiB | 5 Q