3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); if(!defined('BAR')) define('BAR', 'bar'); !defined('FOO') && define('FOO', 'foo'); echo BAR; echo 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.130.0060.00618.79
8.4.120.0060.00319.52
8.4.110.0130.00722.55
8.4.100.0110.01017.51
8.4.90.0110.00920.51
8.4.80.0060.00318.61
8.4.70.0040.00520.76
8.4.60.0110.01018.51
8.4.50.0140.00617.75
8.4.40.0140.00717.41
8.4.30.0110.00820.42
8.4.20.0090.00917.98
8.4.10.0030.00619.28
8.3.260.0060.00616.66
8.3.250.0100.01116.44
8.3.240.0120.00716.63
8.3.230.0050.00416.50
8.3.220.0030.00519.06
8.3.210.0020.00516.56
8.3.200.0040.00716.73
8.3.190.0110.00816.98
8.3.180.0080.00616.69
8.3.170.0080.00018.68
8.3.160.0150.00418.46
8.3.150.0100.01020.66
8.3.140.0030.00717.16
8.3.130.0090.00018.28
8.3.120.0080.00020.92
8.3.110.0150.00420.94
8.3.100.0000.01424.06
8.3.90.0040.00426.77
8.3.80.0090.00017.97
8.3.70.0120.00916.88
8.3.60.0070.00716.38
8.3.50.0120.00919.77
8.3.40.0040.01120.37
8.3.30.0060.00918.54
8.3.20.0000.00724.18
8.3.10.0040.00424.66
8.3.00.0000.00826.16
8.2.290.0120.00816.13
8.2.280.0050.00318.44
8.2.270.0110.00717.05
8.2.260.0040.01116.29
8.2.250.0080.01116.45
8.2.240.0060.00317.14
8.2.230.0040.00422.58
8.2.220.0000.00937.54
8.2.210.0080.00826.77
8.2.200.0030.00618.29
8.2.190.0120.00316.58
8.2.180.0140.00425.92
8.2.170.0120.00319.01
8.2.160.0090.00622.96
8.2.150.0050.00325.66
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0080.00026.16
8.2.110.0070.01419.34
8.2.100.0080.00417.78
8.2.90.0000.00817.91
8.2.80.0000.00819.82
8.2.70.0040.00417.38
8.2.60.0050.00317.25
8.2.50.0000.00817.98
8.2.40.0050.00318.16
8.2.30.0070.00017.90
8.2.20.0030.00520.41
8.2.10.0000.00717.53
8.2.00.0000.00719.15
8.1.330.0130.00616.19
8.1.320.0110.00917.72
8.1.310.0000.00716.37
8.1.300.0090.00019.78
8.1.290.0060.00330.84
8.1.280.0130.00625.92
8.1.270.0040.00423.99
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00319.13
8.1.230.0030.01319.00
8.1.220.0060.00317.74
8.1.210.0060.00318.77
8.1.200.0030.00517.23
8.1.190.0070.00017.23
8.1.180.0000.00818.10
8.1.170.0070.00017.62
8.1.160.0080.00020.52
8.1.150.0070.00018.57
8.1.140.0030.00517.29
8.1.130.0000.00818.79
8.1.120.0000.00817.37
8.1.110.0000.00717.32
8.1.100.0050.00317.34
8.1.90.0050.00217.39
8.1.80.0060.00317.36
8.1.70.0000.00717.31
8.1.60.0040.00417.39
8.1.50.0060.00317.50
8.1.40.0030.00717.40
8.1.30.0030.00617.43
8.1.20.0000.00717.46
8.1.10.0010.00817.31
8.1.00.0130.00317.34
8.0.300.0050.00218.77
8.0.290.0040.00416.63
8.0.280.0000.00718.37
8.0.270.0030.00316.78
8.0.260.0040.00418.38
8.0.250.0050.00316.77
8.0.240.0030.00316.79
8.0.230.0070.00016.84
8.0.220.0040.00416.71
8.0.210.0030.00316.72
8.0.200.0030.00316.87
8.0.190.0050.00216.89
8.0.180.0040.00416.81
8.0.170.0000.00816.80
8.0.160.0000.00716.70
8.0.150.0040.00416.77
8.0.140.0080.00516.66
8.0.130.0120.00416.65
8.0.120.0140.00416.62
8.0.110.0100.00616.70
8.0.100.0160.00216.67
8.0.90.0100.00616.68
8.0.80.0160.00316.79
8.0.70.0160.00316.62
8.0.60.0090.00516.67
8.0.50.0120.00316.78
8.0.30.0130.00716.77
8.0.20.0140.00516.88
8.0.10.0160.00316.81
8.0.00.0060.00516.86
7.4.330.0030.00315.55
7.4.320.0040.00416.37
7.4.300.0040.00416.50
7.4.290.0030.00316.40
7.4.280.0080.00016.52
7.4.270.0130.00316.44
7.4.260.0190.00316.43
7.4.250.0230.00216.46
7.4.240.0150.00616.44
7.4.230.0200.00116.48
7.4.220.0160.00316.45
7.4.210.0130.00616.50
7.4.200.0160.00216.35
7.4.190.0160.00216.49
7.4.180.0160.00216.51
7.4.160.0160.00216.43
7.4.150.0150.00416.41
7.4.140.0090.00916.38
7.4.130.0100.00616.41
7.4.120.0120.00516.28
7.4.110.0100.00616.25
7.4.100.0160.00016.42
7.4.90.0130.00616.33
7.4.80.0140.00616.34
7.4.70.0140.00516.42
7.4.60.0170.00216.32
7.4.50.0120.00716.25
7.4.40.0150.00416.20
7.4.30.0140.00516.32
7.4.20.0140.00516.10
7.4.10.0130.00516.22
7.4.00.0120.00516.20
7.3.330.0130.00416.05
7.3.320.0150.00615.93
7.3.310.0180.00216.17
7.3.300.0130.00515.90
7.3.290.0160.00216.18
7.3.280.0130.00616.05
7.3.270.0170.00216.24
7.3.260.0130.00415.90
7.3.250.0140.00516.11
7.3.240.0140.00316.12
7.3.230.0100.00716.02
7.3.220.0140.00516.02
7.3.210.0140.00516.09
7.3.200.0090.00516.03
7.3.190.0140.00216.15
7.3.180.0180.00016.20
7.3.170.0090.00515.98
7.3.160.0080.00816.11
7.3.150.0160.00216.09
7.3.140.0100.00816.03
7.3.130.0110.00615.99

preferences:
119.71 ms | 403 KiB | 5 Q