3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function numeric($value): void { if (is_numeric($value)) { echo 'numeric'; } else { echo 'not numeric'; } echo ': ', (int) $value; } numeric("\n\t\n 42"); echo ', '; numeric("1337 ");

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.5.10.0130.00616.53
8.5.00.0120.01019.87
8.4.160.0140.00923.85
8.4.150.0020.00114.05
8.4.140.0150.00617.34
8.4.130.0070.01417.80
8.4.120.0130.00522.35
8.4.110.0060.00518.61
8.4.100.0070.00517.72
8.4.90.0100.01117.47
8.4.80.0060.00217.56
8.4.70.0110.00919.37
8.4.60.0120.00819.63
8.4.50.0130.00618.64
8.4.40.0130.00717.59
8.4.30.0130.00720.52
8.4.20.0070.01320.50
8.4.10.0080.01119.36
8.3.280.0120.00720.17
8.3.270.0120.00716.70
8.3.260.0090.01016.63
8.3.250.0090.00718.82
8.3.240.0070.00416.18
8.3.230.0130.00416.27
8.3.220.0100.00617.06
8.3.210.0090.01116.32
8.3.200.0090.00916.23
8.3.190.0100.00616.42
8.3.180.0120.00716.70
8.3.170.0110.00717.21
8.3.160.0160.00018.38
8.3.150.0130.00618.78
8.3.140.0110.00716.58
8.3.130.0030.00618.18
8.3.120.0110.00720.84
8.3.110.0080.00320.94
8.3.100.0060.01518.29
8.3.90.0060.00326.77
8.3.80.0050.00519.36
8.3.70.0110.00716.58
8.3.60.0090.00618.30
8.3.50.0160.00324.58
8.3.40.0100.00320.04
8.3.30.0090.00918.52
8.3.20.0090.00024.18
8.3.10.0040.00424.66
8.3.00.0070.00026.16
8.2.290.0110.00720.32
8.2.280.0030.00516.65
8.2.270.0080.00818.75
8.2.260.0110.00718.09
8.2.250.0070.01318.48
8.2.240.0040.01117.07
8.2.230.0080.00022.58
8.2.220.0030.00524.06
8.2.210.0110.00726.77
8.2.200.0080.00018.88
8.2.190.0030.01616.58
8.2.180.0110.00325.92
8.2.170.0130.00718.82
8.2.160.0140.00022.96
8.2.150.0000.00725.66
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00026.35
8.2.110.0000.00820.93
8.2.100.0060.00617.78
8.2.90.0060.00317.78
8.2.80.0000.00918.98
8.2.70.0070.00317.80
8.2.60.0050.00318.09
8.2.50.0050.00318.10
8.2.40.0000.00721.08
8.2.30.0040.00418.06
8.2.20.0040.00417.91
8.2.10.0000.00719.18
8.2.00.0030.00519.00
8.1.330.0110.00818.27
8.1.320.0130.00617.79
8.1.310.0040.00418.43
8.1.300.0090.00017.47
8.1.290.0060.00330.84
8.1.280.0140.00325.92
8.1.270.0040.00423.99
8.1.260.0040.00428.09
8.1.250.0000.00828.09
8.1.240.0030.00622.04
8.1.230.0080.00320.86
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0080.00017.23
8.1.190.0060.00317.23
8.1.180.0000.00818.10
8.1.170.0090.00018.53
8.1.160.0000.00718.81
8.1.150.0040.00418.73
8.1.140.0000.00718.81
8.1.130.0000.00720.12
8.1.120.0070.00017.35
8.1.110.0000.00717.36
8.1.100.0020.00517.24
8.1.90.0000.00717.35
8.1.80.0000.00917.23
8.1.70.0070.00017.39
8.1.60.0030.00617.54
8.1.50.0040.00417.43
8.1.40.0040.00417.42
8.1.30.0000.00917.62
8.1.20.0040.00717.57
8.1.10.0030.00617.30
8.1.00.0000.00717.43
8.0.300.0030.00520.04
8.0.290.0000.00816.63
8.0.280.0040.00418.37
8.0.270.0040.00417.95
8.0.260.0030.00318.38
8.0.250.0000.00716.78
8.0.240.0030.00516.92
8.0.230.0000.00716.81
8.0.220.0070.00016.63
8.0.210.0030.00316.69
8.0.200.0000.00816.79
8.0.190.0030.00516.84
8.0.180.0030.00616.81
8.0.170.0000.00816.81
8.0.160.0040.00416.77
8.0.150.0030.00516.69
8.0.140.0030.00316.72
8.0.130.0030.00313.24
8.0.120.0000.00816.75
8.0.110.0000.00716.83
8.0.100.0050.00316.73
8.0.90.0040.00416.67
8.0.80.0050.01016.81
8.0.70.0000.00816.62
8.0.60.0040.00416.64
8.0.50.0000.00716.60
8.0.30.0030.01317.10
8.0.20.0100.00817.16
8.0.10.0050.00316.94
8.0.00.0120.00616.66
7.4.330.0000.00615.55
7.4.320.0000.00616.36
7.4.300.0030.00316.39
7.4.290.0070.00016.55
7.4.280.0050.00316.53
7.4.270.0040.00416.57
7.4.260.0030.00313.21
7.4.250.0000.00716.53
7.4.240.0040.00416.56
7.4.230.0050.00216.34
7.4.220.0030.00316.64
7.4.210.0090.00716.47
7.4.200.0030.00316.54
7.4.130.0080.00816.46
7.4.120.0120.01316.29
7.4.110.0060.01116.42
7.4.100.0110.00516.50
7.4.90.0070.01016.26
7.4.80.0070.01016.32
7.4.70.0040.01316.48
7.4.60.0190.00016.57
7.4.50.0070.01016.13
7.4.40.0130.00316.20
7.4.30.0030.01216.32
7.4.20.0130.00316.25
7.4.10.0050.01316.24
7.4.00.0030.01315.97
7.3.330.0030.00316.11
7.3.320.0030.00313.25
7.3.310.0030.00316.27
7.3.300.0070.00016.27
7.3.290.0060.01216.29
7.3.260.0120.00616.27
7.3.230.0000.01716.32
7.3.220.0170.00016.60
7.3.210.0130.00316.55
7.3.200.0110.00716.39
7.3.190.0140.00616.29
7.3.180.0060.01316.31
7.3.170.0060.01016.34
7.3.160.0080.00816.58
7.3.150.0070.00816.34
7.3.140.0110.00616.54
7.3.130.0070.01016.38
7.3.120.0070.01016.58
7.3.110.0070.01016.19
7.3.100.0090.00616.35
7.3.90.0160.00016.38
7.3.80.0030.01316.22
7.3.70.0060.01016.41
7.3.60.0160.00316.18
7.3.50.0100.01016.37
7.3.40.0160.00316.38
7.3.30.0130.00716.34
7.3.20.0120.00916.32
7.3.10.0090.00916.38
7.3.00.0150.00316.33
7.2.330.0030.01716.46
7.2.320.0080.00816.50
7.2.310.0150.00316.50
7.2.300.0130.00316.66
7.2.290.0100.00716.31
7.2.280.0130.00316.49
7.2.270.0110.00516.21
7.2.260.0110.00616.59
7.2.250.0110.00616.71
7.2.240.0030.01416.61
7.2.230.0140.00416.61
7.2.220.0030.01416.29
7.2.210.0030.01316.54
7.2.200.0030.01716.61
7.2.190.0110.01116.53
7.2.180.0180.00316.30
7.2.170.0060.01516.41
7.2.160.0070.01416.44
7.2.150.0180.00416.35
7.2.140.0070.01016.61
7.2.130.0080.01516.46
7.2.120.0100.00716.59
7.2.110.0150.00316.50
7.2.100.0140.00416.43
7.2.90.0090.00916.62
7.2.80.0120.00616.54
7.2.70.0120.00616.32
7.2.60.0090.00916.47
7.2.50.0030.01516.56
7.2.40.0140.00316.51
7.2.30.0070.01016.46
7.2.20.0090.00916.55
7.2.10.0030.01516.54
7.2.00.0090.00916.50

preferences:
36.03 ms | 403 KiB | 5 Q