3v4l.org

run code in 300+ PHP versions simultaneously
<?php $valueOfTrue = 0; // this was coming from config in real-world. $valueOfFalse = 1; // Same here. ^ define('TRUE', $valueOfTrue); define('FALSE', $valueOfFalse); var_dump(TRUE, FALSE); // Happy debugging... if (TRUE) { echo 'yay'; }

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.0060.00916.75
8.3.60.0120.00318.43
8.3.50.0180.00822.04
8.3.40.0120.00318.64
8.3.30.0040.01119.06
8.3.20.0040.00420.07
8.3.10.0080.00022.10
8.3.00.0050.00322.39
8.2.190.0120.01216.75
8.2.180.0140.00316.75
8.2.170.0100.00322.96
8.2.160.0060.00920.95
8.2.150.0070.00724.18
8.2.140.0030.00624.66
8.2.130.0070.00026.16
8.2.120.0040.00417.75
8.2.110.0100.00021.04
8.2.100.0080.00317.84
8.2.90.0050.00317.88
8.2.80.0050.00317.97
8.2.70.0110.00017.89
8.2.60.0000.00718.04
8.2.50.0040.00418.10
8.2.40.0050.00220.35
8.2.30.0040.00420.69
8.2.20.0040.00417.77
8.2.10.0000.00817.53
8.2.00.0070.00317.60
8.1.280.0070.00725.92
8.1.270.0070.00022.18
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00620.59
8.1.230.0030.00720.85
8.1.220.0030.00517.74
8.1.210.0030.00618.77
8.1.200.0040.00717.25
8.1.190.0040.00417.23
8.1.180.0060.00318.10
8.1.170.0030.00618.66
8.1.160.0070.00018.95
8.1.150.0040.00418.63
8.1.140.0000.00717.51
8.1.130.0040.00417.78
8.1.120.0000.00717.44
8.1.110.0040.00417.26
8.1.100.0000.00817.33
8.1.90.0000.00717.34
8.1.80.0030.00317.41
8.1.70.0030.00317.27
8.1.60.0030.00617.41
8.1.50.0060.00317.40
8.1.40.0000.00717.47
8.1.30.0040.00417.54
8.1.20.0040.00417.50
8.1.10.0000.00717.55
8.1.00.0040.00417.50
8.0.300.0090.00019.96
8.0.290.0030.00616.75
8.0.280.0070.00018.35
8.0.270.0070.00017.25
8.0.260.0040.00416.86
8.0.250.0070.00016.87
8.0.240.0020.00516.86
8.0.230.0030.00316.94
8.0.220.0000.00716.77
8.0.210.0000.00816.75
8.0.200.0060.00016.99
8.0.190.0030.00316.91
8.0.180.0040.00416.96
8.0.170.0020.00516.95
8.0.160.0040.00416.91
8.0.150.0040.00416.84
8.0.140.0050.00216.73
8.0.130.0030.00313.25
8.0.120.0000.00816.89
8.0.110.0070.00016.73
8.0.100.0000.00716.76
8.0.90.0000.00816.78
8.0.80.0040.01116.93
8.0.70.0040.00416.79
8.0.60.0000.00716.81
8.0.50.0000.00716.89
8.0.30.0150.00817.13
8.0.20.0140.00717.40
8.0.10.0040.00417.07
8.0.00.0080.01016.86
7.4.330.0020.00215.13
7.4.320.0030.00316.46
7.4.300.0030.00316.42
7.4.290.0000.00716.58
7.4.280.0070.00016.51
7.4.270.0080.00316.45
7.4.260.0030.00316.44
7.4.250.0000.00816.30
7.4.240.0020.00516.53
7.4.230.0030.00316.64
7.4.220.0120.00616.48
7.4.210.0080.00916.59
7.4.200.0070.00016.49
7.4.190.0030.00316.50
7.4.160.0120.00416.54
7.4.150.0070.01117.40
7.4.140.0100.00717.86
7.4.130.0080.00916.46
7.4.120.0080.00816.32
7.4.110.0170.00716.56
7.4.100.0090.00916.48
7.4.90.0120.00916.40
7.4.80.0030.01619.39
7.4.70.0040.01216.46
7.4.60.0030.01316.38
7.4.50.0050.00316.18
7.4.40.0050.00522.77
7.4.30.0050.01416.41
7.4.00.0040.01114.86
7.3.330.0050.00012.88
7.3.320.0000.00512.93
7.3.310.0000.00716.00
7.3.300.0000.00716.18
7.3.290.0070.00716.18
7.3.280.0120.00416.21
7.3.270.0210.00317.40
7.3.260.0130.01016.37
7.3.250.0110.00616.26
7.3.240.0130.00316.44
7.3.230.0140.01016.44
7.3.210.0110.00716.16
7.3.200.0150.00619.39
7.3.190.0090.01316.34
7.3.180.0070.01416.20
7.3.170.0130.01016.27
7.3.160.0110.00616.36
7.3.120.0030.01014.45
7.2.330.0030.01416.60
7.2.320.0120.01116.43
7.2.310.0110.00716.67
7.2.300.0080.00816.64
7.2.290.0120.00616.37
7.2.110.0130.00516.47
7.2.100.0070.00716.38
7.2.90.0130.00016.65
7.2.80.0310.00616.16
7.2.70.0130.00316.45
7.2.60.0240.00316.66
7.2.50.0140.00316.90
7.2.40.0190.00616.84
7.2.30.0030.01116.92
7.2.20.0190.00516.73
7.2.10.0230.00016.58
7.2.00.0100.00818.03
7.1.230.0200.00715.44
7.1.220.0130.00315.68
7.1.210.0130.00315.77
7.1.200.0110.00515.75
7.1.190.0150.00615.63
7.1.180.0150.00915.72
7.1.170.0140.00315.41
7.1.160.0140.00415.68
7.1.150.0170.00615.26
7.1.140.0130.01015.77
7.1.130.0160.00015.82
7.1.120.0190.00015.59
7.1.110.0150.00015.79
7.1.100.0100.00516.86
7.1.90.0150.00615.62
7.1.80.0180.00515.70
7.1.70.0080.00516.31
7.1.60.0100.01117.74
7.1.50.0170.01116.19
7.1.40.0200.00715.79
7.1.30.0270.00016.01
7.1.20.0040.01315.89
7.1.10.0270.00715.59
7.1.00.0170.03819.01
7.0.310.0120.00815.54
7.0.300.0160.00315.38
7.0.290.0180.00415.39
7.0.280.0140.00715.07
7.0.270.0140.00515.24
7.0.260.0150.00915.15
7.0.250.0090.00915.07
7.0.240.0130.00015.31
7.0.230.0070.00715.27
7.0.220.0180.01015.27
7.0.210.0480.00615.07
7.0.200.0080.00516.09
7.0.190.0250.00015.23
7.0.180.0140.00515.35
7.0.170.0160.00315.35
7.0.160.0170.00315.30
7.0.150.0240.00315.18
7.0.140.0140.04018.66
7.0.130.0320.00315.15
7.0.120.0220.00015.34
7.0.110.0310.00015.39
7.0.100.0190.00615.42
7.0.90.0100.01115.40
7.0.80.0150.00615.43
7.0.70.0160.00615.32
7.0.60.0180.02717.54
7.0.50.0140.04616.60
7.0.40.0120.02016.71
7.0.30.0160.03716.82
7.0.20.0150.02216.84
7.0.10.0040.03016.65
7.0.00.0110.04316.80
5.6.380.0040.01114.67
5.6.370.0120.00414.54
5.6.360.0040.01114.02
5.6.350.0100.00814.03
5.6.340.0130.00314.11
5.6.330.0080.00614.63
5.6.320.0080.00414.32
5.6.310.0080.00814.11
5.6.300.0070.00714.12
5.6.290.0040.00914.00
5.6.280.0050.04017.40
5.6.270.0070.00514.66
5.6.260.0100.00714.29
5.6.250.0120.00514.47
5.6.240.0110.00614.28
5.6.230.0080.00614.27
5.6.220.0110.00614.24
5.6.210.0110.03117.39
5.6.200.0080.03216.23
5.6.190.0090.04317.26
5.6.180.0080.04317.44
5.6.170.0200.01917.54
5.6.160.0100.04517.44
5.6.150.0050.04716.11
5.6.140.0060.03316.19
5.6.130.0070.02916.04
5.6.120.0150.03817.81
5.6.110.0050.04617.75
5.6.100.0060.02417.69
5.6.90.0120.02817.57
5.6.80.0090.04117.28
5.6.70.0090.00913.98
5.6.60.0110.00414.11
5.6.50.0110.00014.30
5.6.40.0120.00314.38
5.6.30.0150.00013.98
5.6.20.0110.00414.26
5.6.10.0110.00014.17
5.6.00.0120.00414.17
5.5.380.0070.00410.93
5.5.370.0140.00010.87
5.5.360.0080.00410.99
5.5.350.0020.02215.53
5.5.340.0050.02214.48
5.5.330.0080.02815.49
5.5.320.0230.03915.45
5.5.310.0200.03515.65
5.5.300.0120.03514.44
5.5.290.0050.04114.39
5.5.280.0070.02315.83
5.5.270.0060.02315.80
5.5.260.0060.03615.86
5.5.250.0080.03815.86
5.5.240.0080.03115.55
5.5.230.0080.00410.88
5.5.220.0030.00910.97
5.5.210.0040.00810.96
5.5.200.0100.00310.64
5.5.190.0030.00610.52
5.5.180.0040.00811.04
5.5.170.0110.00413.92
5.5.160.0050.00510.77
5.5.150.0050.00510.81
5.5.140.0080.00411.04
5.5.130.0090.00611.07
5.5.120.0070.00211.07
5.5.110.0080.00810.90
5.5.100.0080.00311.11
5.5.90.0060.00610.76
5.5.80.0090.00610.98
5.5.70.0090.00311.12
5.5.60.0070.00710.98
5.5.50.0090.00610.74
5.5.40.0090.00310.74
5.5.30.0090.00010.96
5.5.20.0080.00311.05
5.5.10.0090.00210.78
5.5.00.0100.00310.74
5.4.450.0450.02015.10
5.4.440.0380.02215.09
5.4.430.0770.00215.21
5.4.420.0720.00215.29
5.4.410.0110.02914.77
5.4.400.0110.03014.70
5.4.390.0130.02314.69
5.4.380.0260.02314.80
5.4.370.0140.02814.77
5.4.360.0160.02514.79
5.4.350.0180.03514.84
5.4.340.0160.02314.83
5.4.330.0120.00310.89
5.4.320.0060.02711.58
5.4.310.0080.02511.63
5.4.300.0050.02111.55
5.4.290.0100.01911.64
5.4.280.0080.01911.69
5.4.270.0050.02311.57
5.4.260.0050.02411.56
5.4.250.0060.02211.63
5.4.240.0100.02011.59
5.4.230.0070.02111.55
5.4.220.0060.02111.47
5.4.210.0110.01911.48
5.4.200.0050.02211.67
5.4.190.0040.02311.54
5.4.180.0020.02511.67
5.4.170.0050.02311.56
5.4.160.0040.02211.55
5.4.150.0030.02311.38
5.4.140.0060.02111.47
5.4.130.0070.02011.42
5.4.120.0080.02011.36
5.4.110.0060.01811.28
5.4.100.0060.02311.36
5.4.90.0070.01911.40
5.4.80.0040.02311.31
5.4.70.0080.02011.38
5.4.60.0060.02011.48
5.4.50.0040.02111.43
5.4.40.0070.02011.29
5.4.30.0080.01811.39
5.4.20.0070.02011.49
5.4.10.0050.02211.33
5.4.00.0030.02611.06
5.3.290.0080.02111.55
5.3.280.0060.02111.56
5.3.270.0050.02211.54
5.3.260.0060.02211.65
5.3.250.0080.02111.64
5.3.240.0070.02211.55
5.3.230.0050.02111.56
5.3.220.0060.02611.46
5.3.210.0060.02611.37
5.3.200.0050.02111.48
5.3.190.0070.02111.43
5.3.180.0100.01811.56
5.3.170.0090.01811.43
5.3.160.0090.02111.52
5.3.150.0050.02211.57
5.3.140.0060.02111.47
5.3.130.0070.02211.56
5.3.120.0070.02211.54
5.3.110.0020.02611.52
5.3.100.0070.02011.15
5.3.90.0040.02311.18
5.3.80.0060.02011.04
5.3.70.0090.01911.06
5.3.60.0060.02011.10
5.3.50.0070.01911.09
5.3.40.0060.02011.05
5.3.30.0070.02311.14
5.3.20.0020.02410.92
5.3.10.0030.02210.88
5.3.00.0080.01810.85
5.2.170.0050.0179.36
5.2.160.0070.0159.38
5.2.150.0080.0149.32
5.2.140.0030.0209.29
5.2.130.0060.0169.19
5.2.120.0050.0179.30
5.2.110.0090.0149.32
5.2.100.0080.0139.27
5.2.90.0020.0209.26
5.2.80.0080.0149.22
5.2.70.0060.0149.21
5.2.60.0060.0169.14
5.2.50.0040.0179.18
5.2.40.0060.0169.20
5.2.30.0050.0158.97
5.2.20.0080.0139.00
5.2.10.0060.0149.04
5.2.00.0050.0178.96
5.1.60.0060.0128.49
5.1.50.0020.0178.49
5.1.40.0060.0138.48
5.1.30.0050.0138.65
5.1.20.0050.0158.67
5.1.10.0080.0128.53
5.1.00.0060.0148.53
5.0.50.0030.0117.77
5.0.40.0040.0117.70
5.0.30.0030.0187.60
5.0.20.0050.0107.59
5.0.10.0050.0107.58
5.0.00.0020.0187.57
4.4.90.0030.0106.86
4.4.80.0030.0096.85
4.4.70.0020.0126.85
4.4.60.0050.0076.85
4.4.50.0040.0076.86
4.4.40.0020.0166.83
4.4.30.0040.0106.85
4.4.20.0050.0096.89
4.4.10.0020.0136.89
4.4.00.0030.0186.85
4.3.110.0010.0156.81
4.3.100.0030.0106.80
4.3.90.0020.0096.79
4.3.80.0030.0136.76
4.3.70.0010.0106.79
4.3.60.0050.0086.79
4.3.50.0040.0096.78
4.3.40.0040.0136.74
4.3.30.0010.0116.11
4.3.20.0020.0086.10
4.3.10.0030.0096.08
4.3.00.0100.01311.11

preferences:
47.2 ms | 401 KiB | 5 Q