3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function double(int $value) { return 2 * $value; } function coerceInt(string $value) : int { return (int)$value; } $a = double(coerceInt("5")); var_dump($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.70.0120.00316.50
8.3.60.0070.01416.50
8.3.50.0120.00621.97
8.3.40.0110.00418.54
8.3.30.0100.00718.55
8.3.20.0000.00920.12
8.3.10.0000.00823.70
8.3.00.0000.00919.25
8.2.190.0100.01016.58
8.2.180.0110.01116.50
8.2.170.0100.01022.96
8.2.160.0070.00720.39
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0030.00617.63
8.2.110.0040.00821.12
8.2.100.0090.00317.85
8.2.90.0090.00017.97
8.2.80.0070.00317.97
8.2.70.0060.00317.50
8.2.60.0050.00318.16
8.2.50.0040.00418.07
8.2.40.0040.00421.19
8.2.30.0000.00820.66
8.2.20.0040.00417.55
8.2.10.0040.00417.92
8.2.00.0000.00718.09
8.1.280.0140.00725.92
8.1.270.0100.01023.96
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0130.00322.61
8.1.230.0120.00021.04
8.1.220.0030.00517.74
8.1.210.0050.00318.81
8.1.200.0030.00617.23
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0040.00418.88
8.1.160.0050.00321.87
8.1.150.0040.00418.82
8.1.140.0000.00819.52
8.1.130.0030.00317.50
8.1.120.0070.00017.46
8.1.110.0050.00217.27
8.1.100.0000.00717.42
8.1.90.0070.00417.38
8.1.80.0030.00517.37
8.1.70.0000.00717.45
8.1.60.0040.00417.55
8.1.50.0050.00317.56
8.1.40.0030.00617.57
8.1.30.0030.00517.61
8.1.20.0020.00517.61
8.1.10.0020.00517.55
8.1.00.0060.00317.46
8.0.300.0040.00419.91
8.0.290.0000.00816.75
8.0.280.0030.00318.40
8.0.270.0070.00017.25
8.0.260.0050.00317.26
8.0.250.0040.00417.00
8.0.240.0070.00016.93
8.0.230.0070.00016.79
8.0.220.0040.00416.71
8.0.210.0040.00416.83
8.0.200.0000.00616.90
8.0.190.0040.00416.89
8.0.180.0000.00716.89
8.0.170.0000.00716.73
8.0.160.0000.00716.88
8.0.150.0000.00716.78
8.0.140.0000.00716.70
8.0.130.0000.00613.25
8.0.120.0040.00416.77
8.0.110.0000.00716.76
8.0.100.0070.00016.85
8.0.90.0040.00416.89
8.0.80.0090.00616.80
8.0.70.0040.00416.89
8.0.60.0000.00716.94
8.0.50.0040.00416.89
8.0.30.0110.00917.07
8.0.20.0090.01017.40
8.0.10.0030.00516.89
8.0.00.0070.01016.83
7.4.330.0000.00515.08
7.4.320.0000.00716.64
7.4.300.0030.00316.50
7.4.290.0070.00016.50
7.4.280.0040.00416.59
7.4.270.0030.00316.43
7.4.260.0030.00316.54
7.4.250.0000.00816.55
7.4.240.0020.00616.56
7.4.230.0030.00316.64
7.4.220.0130.00716.60
7.4.210.0080.00616.49
7.4.200.0030.00316.30
7.4.160.0090.00616.72
7.4.150.0090.00917.40
7.4.140.0190.01817.86
7.4.130.0170.00316.56
7.4.120.0130.00516.56
7.4.110.0070.01016.54
7.4.100.0130.00316.51
7.4.90.0090.01216.42
7.4.80.0070.01019.39
7.4.70.0030.01216.54
7.4.60.0120.00616.54
7.4.50.0030.00516.34
7.4.40.0160.00016.42
7.4.30.0140.00316.53
7.4.00.0000.01215.22
7.3.330.0060.00013.30
7.3.320.0050.00013.30
7.3.310.0040.00416.21
7.3.300.0030.00316.21
7.3.290.0060.01016.31
7.3.280.0100.00816.29
7.3.270.0100.00717.40
7.3.260.0130.00616.29
7.3.240.0120.00616.54
7.3.230.0100.00716.39
7.3.210.0100.00716.28
7.3.200.0100.00616.16
7.3.190.0060.01016.69
7.3.180.0090.00916.47
7.3.170.0120.00416.53
7.3.160.0100.00616.32
7.2.330.0140.00416.61
7.2.320.0040.01416.67
7.2.310.0110.00816.75
7.2.300.0140.00316.72
7.2.290.0040.01916.25
7.2.60.0000.01316.87
7.2.00.0090.00319.43
7.1.200.0260.00415.37
7.1.100.0060.00617.97
7.1.70.0040.01117.23
7.1.60.0150.00919.11
7.1.50.0200.01734.78
7.1.00.0030.07722.33
7.0.200.0030.01016.70
7.0.60.0130.08020.07
7.0.50.0130.03017.88
7.0.40.0100.05720.13
7.0.30.0630.05720.08
7.0.20.0270.05020.25
7.0.10.0070.05020.07
7.0.00.0170.07320.21
5.6.280.0030.03321.13
5.6.210.0130.06720.70
5.6.200.0100.06318.13
5.6.190.0030.04320.55
5.6.180.0200.04020.61
5.6.170.0100.05320.51
5.6.160.0130.05020.54
5.6.150.0100.07718.22
5.6.140.0000.05718.18
5.6.130.0130.08018.11
5.6.120.0130.04321.10
5.6.110.0130.06321.02
5.6.100.0000.04321.11
5.6.90.0070.08321.11
5.6.80.0030.05720.39
5.6.70.0230.04720.42
5.5.350.0230.07320.41
5.5.340.0070.04017.98
5.5.330.0130.05020.59
5.5.320.0270.07020.41
5.5.310.0270.07320.35
5.5.300.0030.08317.95
5.5.290.0030.05318.02
5.5.280.0070.08320.85
5.5.270.0030.04020.77
5.5.260.0130.06320.73
5.5.250.0000.04720.66
5.5.240.0100.07720.19
5.4.450.0170.06019.20
5.4.440.0100.06319.45
5.4.430.0130.06019.61
5.4.420.0230.06019.46
5.4.410.0030.06719.35
5.4.400.0300.04718.84
5.4.390.0230.05319.26
5.4.380.0230.04719.30
5.4.370.0330.07019.13
5.4.360.0170.06019.16
5.4.350.0130.06319.38
5.4.340.0170.06019.16
5.4.320.0330.05718.98
5.4.310.0330.06718.98
5.4.300.0230.04719.22
5.4.290.0200.05019.03
5.4.280.0170.07018.89
5.4.270.0330.05019.22
5.4.260.0330.05019.38
5.4.250.0270.05318.84
5.4.240.0230.04719.14
5.4.230.0200.07018.87
5.4.220.0170.05319.14
5.4.210.0070.06319.05
5.4.200.0170.05319.14
5.4.190.0200.05019.14
5.4.180.0230.05719.05
5.4.170.0230.05319.27
5.4.160.0100.06018.86
5.4.150.0300.04718.84
5.4.140.0170.06016.44
5.4.130.0170.05016.48
5.4.120.0300.03716.36
5.4.110.0170.05016.34
5.4.100.0170.05016.50
5.4.90.0170.06016.50
5.4.80.0270.06716.55
5.4.70.0170.05016.48
5.4.60.0230.07016.59
5.4.50.0130.05016.59
5.4.40.0270.04016.17
5.4.30.0270.04016.57
5.4.20.0230.04316.58
5.4.10.0200.05016.44
5.4.00.0270.05015.97

preferences:
56.32 ms | 401 KiB | 5 Q