3v4l.org

run code in 300+ PHP versions simultaneously
<?php const FOO = PHP_INT_SIZE === 8 ? '64bit' : (PHP_INT_SIZE === 4 ? '32bit' : throw new \Error('unexpected')); var_dump(FOO);

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.4.120.0040.00420.46
8.4.110.0110.00922.57
8.4.100.0140.00617.59
8.4.90.0030.00518.53
8.4.80.0070.00619.36
8.4.70.0100.00717.37
8.4.60.0140.00618.44
8.4.50.0130.00817.68
8.4.40.0150.00417.79
8.4.30.0120.00618.74
8.4.20.0130.00717.82
8.4.10.0060.00321.74
8.3.250.0150.00418.83
8.3.240.0070.00916.40
8.3.230.0110.00916.68
8.3.220.0110.00417.41
8.3.210.0090.01016.46
8.3.200.0060.00316.73
8.3.190.0080.01019.11
8.3.180.0120.00716.48
8.3.170.0070.01117.10
8.3.160.0000.00718.30
8.3.150.0090.00616.48
8.3.140.0080.00517.09
8.3.130.0040.00418.31
8.3.120.0000.00920.66
8.3.110.0060.00320.94
8.3.100.0070.00324.06
8.3.90.0180.00026.77
8.3.80.0090.00018.43
8.3.70.0120.00316.75
8.3.60.0070.00718.18
8.3.50.0110.00720.25
8.3.40.0030.01020.34
8.3.30.0140.00018.44
8.3.20.0000.00724.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.290.0050.00320.38
8.2.280.0150.00618.32
8.2.270.0030.01917.22
8.2.260.0090.00316.57
8.2.250.0120.00316.77
8.2.240.0110.00016.89
8.2.230.0150.00322.58
8.2.220.0060.00337.54
8.2.210.0130.00626.77
8.2.200.0040.00418.41
8.2.190.0110.00416.58
8.2.180.0120.00625.92
8.2.170.0140.00718.91
8.2.160.0070.00722.96
8.2.150.0080.00025.66
8.2.140.0030.00524.66
8.2.130.0000.00726.16
8.2.120.0040.00426.16
8.2.110.0040.00422.08
8.2.100.0120.00317.53
8.2.90.0000.00817.63
8.2.80.0040.00418.84
8.2.70.0060.00317.50
8.2.60.0000.00817.80
8.2.50.0040.00418.07
8.2.40.0000.00817.97
8.2.30.0000.00817.93
8.2.20.0040.00419.04
8.2.10.0050.00317.85
8.2.00.0000.00719.22
8.1.330.0070.01121.79
8.1.320.0110.00916.02
8.1.310.0040.00420.16
8.1.300.0110.00718.26
8.1.290.0060.00630.84
8.1.280.0070.01125.92
8.1.270.0110.00424.66
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00322.14
8.1.230.0040.00817.77
8.1.220.0000.00717.74
8.1.210.0030.00518.77
8.1.200.0040.00417.12
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0040.00418.50
8.1.160.0000.00718.81
8.1.150.0000.00718.42
8.1.140.0000.00817.38
8.1.130.0000.00618.98
8.1.120.0030.00317.40
8.1.110.0070.00017.34
8.1.100.0080.00017.29
8.1.90.0090.00517.32
8.1.80.0120.00417.14
8.1.70.0120.00317.18
8.1.60.0150.00317.38
8.1.50.0060.00617.43
8.1.40.0030.00617.37
8.1.30.0150.00317.51
8.1.20.0180.00017.48
8.1.10.0130.00417.16
8.1.00.0180.00017.20
8.0.300.0050.00218.77
8.0.290.0040.00416.58
8.0.280.0000.00818.29
8.0.270.0040.00416.85
8.0.260.0000.00618.24
8.0.250.0080.00016.81
8.0.240.0040.00416.79
8.0.230.0120.00316.63
8.0.220.0150.00016.73
8.0.210.0070.00716.70
8.0.200.0120.00216.59
8.0.190.0080.00816.76
8.0.180.0170.00016.62
8.0.170.0090.00616.78
8.0.160.0150.00016.71
8.0.150.0150.00016.71
8.0.140.0100.00316.68
8.0.130.0090.00516.57
8.0.120.0060.00916.69
8.0.110.0100.00316.75
8.0.100.0090.00616.76
8.0.90.0150.00016.64
8.0.80.0070.00716.68
8.0.70.0090.00516.57
8.0.60.0090.00516.64
8.0.50.0080.00616.68
8.0.30.0050.01016.66
8.0.20.0110.00416.79
8.0.10.0060.00816.80
7.4.330.0000.00415.55
7.4.320.0030.00316.32
7.4.300.0030.00316.33
7.4.290.0060.01016.14
7.4.280.0140.00316.27
7.4.270.0160.00016.36
7.4.260.0160.00016.34
7.4.250.0180.00016.18
7.4.240.0130.00316.30
7.4.230.0070.00916.37
7.4.220.0070.00716.37
7.4.210.0070.00716.22
7.4.200.0130.00016.23
7.4.190.0090.00516.25
7.4.180.0090.00616.38
7.4.160.0100.00716.24
7.4.150.0070.00716.31
7.4.140.0120.00316.11
7.4.130.0070.00716.17
7.4.120.0110.00316.08
7.4.110.0130.00016.16
7.4.100.0110.00016.29
7.4.90.0000.00716.18
7.4.80.0070.00016.13
7.4.70.0060.00016.16
7.4.60.0090.00016.05
7.4.50.0040.00416.09
7.4.40.0040.00416.07
7.4.30.0060.00316.27
7.4.20.0120.00216.09
7.4.10.0080.00416.20
7.4.00.0050.00916.18

preferences:
33.73 ms | 403 KiB | 5 Q