3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace ns; define('ns\\true', 'blarg1'); define('ns\\false', 'blarg2'); define('ns\\null', 'blarg3'); var_dump(true, false, null);

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.0190.00016.50
8.3.60.0000.01416.25
8.3.50.0090.00917.35
8.3.40.0000.01518.74
8.3.30.0070.00718.58
8.3.20.0050.00318.61
8.3.10.0110.00420.28
8.3.00.0060.00319.13
8.2.180.0070.00716.38
8.2.170.0130.00722.96
8.2.160.0070.00721.08
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0030.00326.16
8.2.120.0040.00419.11
8.2.110.0100.00021.02
8.2.100.0060.00617.66
8.2.90.0030.00619.13
8.2.80.0040.00417.68
8.2.70.0030.00517.50
8.2.60.0080.00017.43
8.2.50.0030.00518.07
8.2.40.0000.00718.03
8.2.30.0030.00617.84
8.2.20.0080.00017.53
8.2.10.0050.00317.64
8.2.00.0050.00317.55
8.1.280.0130.00325.92
8.1.270.0030.00624.66
8.1.260.0000.01926.35
8.1.250.0030.00528.09
8.1.240.0060.00320.58
8.1.230.0060.00620.90
8.1.220.0070.00017.74
8.1.210.0040.00418.83
8.1.200.0000.00817.22
8.1.190.0000.00817.28
8.1.180.0060.00318.10
8.1.170.0000.00718.84
8.1.160.0080.00018.80
8.1.150.0050.00218.46
8.1.140.0070.00017.45
8.1.130.0030.00317.68
8.1.120.0000.00817.32
8.1.110.0040.00417.32
8.1.100.0040.00417.34
8.1.90.0080.00017.38
8.1.80.0000.00717.35
8.1.70.0000.00817.32
8.1.60.0040.00417.45
8.1.50.0000.00717.35
8.1.40.0000.00717.34
8.1.30.0080.00017.48
8.1.20.0040.00417.55
8.1.10.0000.00717.35
8.1.00.0090.00017.28
8.0.300.0100.00019.91
8.0.290.0040.00416.63
8.0.280.0000.00818.19
8.0.270.0040.00417.04
8.0.260.0040.00416.67
8.0.250.0000.00716.74
8.0.240.0050.00316.73
8.0.230.0000.00716.78
8.0.220.0030.00316.75
8.0.210.0030.00316.69
8.0.200.0080.00016.84
8.0.190.0000.00816.85
8.0.180.0000.00716.84
8.0.170.0030.00916.66
8.0.160.0070.00016.80
8.0.150.0000.00816.57
8.0.140.0090.00316.57
8.0.130.0030.00313.17
8.0.120.0080.00016.70
8.0.110.0030.00316.60
8.0.100.0050.00216.79
8.0.90.0000.00816.82
8.0.80.0150.00016.82
8.0.70.0000.00716.75
8.0.60.0000.00716.83
8.0.50.0000.00716.63
8.0.30.0110.00816.90
8.0.20.0100.01016.76
8.0.10.0080.00016.87
8.0.00.0070.01116.60
7.4.330.0030.00312.84
7.4.320.0000.00616.33
7.4.300.0030.00316.42
7.4.290.0000.00716.30
7.4.280.0060.00316.39
7.4.270.0000.00616.46
7.4.260.0000.00513.13
7.4.250.0030.00616.45
7.4.240.0030.00516.43
7.4.230.0030.00316.56
7.4.220.0070.01016.38
7.4.210.0070.01116.48
7.4.200.0000.00716.49
7.4.190.0000.00716.34
7.4.160.0090.00616.32
7.4.150.0070.01016.26
7.4.140.0100.01116.43
7.4.130.0110.00616.31
7.4.120.0130.00816.41
7.4.110.0140.00316.18
7.4.100.0100.00716.14
7.4.90.0120.00616.36
7.4.80.0070.01416.34
7.4.70.0070.01016.41
7.4.60.0150.00716.36
7.4.50.0000.00515.96
7.4.40.0030.00616.36
7.4.30.0060.01616.33
7.4.00.0090.00614.91
7.3.330.0030.00313.06
7.3.320.0030.00312.99
7.3.310.0070.00016.20
7.3.300.0000.00716.12
7.3.290.0060.00916.02
7.3.280.0060.00816.10
7.3.270.0100.00716.50
7.3.260.0090.00816.28
7.3.250.0160.00616.17
7.3.240.0080.00816.34
7.3.230.0100.00616.40
7.3.210.0130.00616.21
7.3.200.0070.01119.39
7.3.190.0040.01416.11
7.3.180.0030.01316.28
7.3.170.0120.00916.32
7.3.160.0000.01516.15
7.3.120.0040.01014.73
7.2.330.0090.01216.44
7.2.320.0160.00016.21
7.2.310.0060.01216.32
7.2.300.0080.01416.45
7.2.290.0140.00516.67
7.2.60.0060.00916.52
7.2.00.0030.01219.09
7.1.200.0030.00715.44
7.1.100.0210.00717.95
7.1.70.0060.00917.02
7.1.60.0110.01419.40
7.1.50.0060.01616.78
7.1.00.0030.03322.30
7.0.200.0390.00414.44
7.0.140.0000.07722.13
7.0.120.0070.07022.11
7.0.60.0030.05020.01
7.0.50.0070.03717.89
7.0.40.0070.08017.76
7.0.30.0030.05717.75
7.0.20.0030.08317.79
7.0.10.0100.08017.68
7.0.00.0030.05317.69
5.6.280.0000.07721.10
5.6.210.0070.03720.72
5.6.200.0100.05318.15
5.6.190.0070.06718.22
5.6.180.0100.07718.20
5.6.170.0100.07318.16
5.6.160.0000.07318.13
5.6.150.0170.06318.18
5.6.140.0030.05318.20
5.6.130.0100.04318.16
5.6.120.0130.07318.18
5.6.110.0030.07018.20
5.6.100.0070.07018.11
5.6.90.0130.06718.18
5.6.80.0070.05717.57
5.6.70.0100.06017.59
5.6.60.0070.07717.48
5.6.50.0100.08017.57
5.6.40.0070.07717.51
5.6.30.0030.07717.45
5.6.20.0000.08317.56
5.6.10.0070.06317.54
5.6.00.0070.07717.49
5.5.350.0030.06720.46
5.5.340.0070.04317.98
5.5.330.0000.08318.01
5.5.320.0070.07017.91
5.5.310.0100.04717.96
5.5.300.0100.07717.91
5.5.290.0100.07718.02
5.5.280.0070.05017.91
5.5.270.0070.07717.97
5.5.260.0130.07318.00
5.5.250.0070.07717.69
5.5.240.0030.08017.28
5.5.230.0100.05017.36
5.5.220.0100.07017.34
5.5.210.0030.04317.34
5.5.200.0100.04017.31
5.5.190.0100.07717.33
5.5.180.0100.07317.27
5.5.160.0130.05017.36
5.5.150.0070.07717.41
5.5.140.0030.04317.25
5.5.130.0100.04017.28
5.5.120.0100.07717.33
5.5.110.0100.07317.36
5.5.100.0070.07317.17
5.5.90.0070.03717.25
5.5.80.0130.03017.21
5.5.70.0100.03317.16
5.5.60.0130.07017.16
5.5.50.0030.06317.16
5.5.40.0130.02717.25
5.5.30.0100.03317.25
5.5.20.0130.04317.24
5.5.10.0000.04717.24
5.5.00.0030.07317.18
5.4.450.0130.05019.29
5.4.440.0100.06019.31
5.4.430.0130.06319.31
5.4.420.0030.08019.29
5.4.410.0030.06019.21
5.4.400.0030.06319.04
5.4.390.0100.07318.82
5.4.380.0070.08019.07
5.4.370.0000.07019.00
5.4.360.0030.07318.98
5.4.350.0070.07318.98
5.4.340.0100.06318.96
5.4.320.0070.04019.03
5.4.310.0000.08018.96
5.4.300.0030.07719.00
5.4.290.0070.07318.82
5.4.280.0030.08718.99
5.4.270.0100.05318.99
5.4.260.0070.06318.98
5.4.250.0030.04018.95
5.4.240.0000.04018.98
5.4.230.0130.02719.06
5.4.220.0030.07319.06
5.4.210.0030.05019.20
5.4.200.0100.04319.12
5.4.190.0000.04019.09
5.4.180.0070.03319.19
5.4.170.0000.04018.98
5.4.160.0100.06318.93
5.4.150.0070.04319.03
5.4.140.0030.05716.34
5.4.130.0030.03716.33
5.4.120.0030.04016.17
5.4.110.0100.03316.30
5.4.100.0000.04316.17
5.4.90.0100.05316.29
5.4.80.0070.03716.35
5.4.70.0100.04316.24
5.4.60.0130.06016.50
5.4.50.0000.07016.23
5.4.40.0000.07716.28
5.4.30.0070.03716.25
5.4.20.0130.05316.42
5.4.10.0070.03716.26
5.4.00.0070.03315.71
5.3.290.0070.04014.61
5.3.280.0030.03714.45
5.3.270.0030.04014.54
5.3.260.0000.04014.52
5.3.250.0030.07714.55
5.3.240.0000.04014.68
5.3.230.0000.04014.43
5.3.220.0070.03314.49
5.3.210.0030.08314.42
5.3.200.0070.06014.34
5.3.190.0100.04014.49
5.3.180.0030.04014.34
5.3.170.0070.08014.50
5.3.160.0070.05014.52
5.3.150.0130.06714.52
5.3.140.0070.04014.51
5.3.130.0070.07714.53
5.3.120.0030.06314.48
5.3.110.0200.04714.47
5.3.100.0070.04014.01
5.3.90.0170.02713.98
5.3.80.0000.08013.77
5.3.70.0070.04013.96
5.3.60.0100.04013.87
5.3.50.0030.05313.92
5.3.40.0100.07313.74
5.3.30.0030.03713.98
5.3.20.0000.03713.45
5.3.10.0000.04013.43
5.3.00.0030.07013.39
5.2.170.0030.03010.98
5.2.160.0000.06311.09
5.2.150.0070.06311.14
5.2.140.0100.03311.11
5.2.130.0070.02311.08
5.2.120.0000.03011.07
5.2.110.0030.02711.00
5.2.100.0070.04311.10
5.2.90.0000.03311.09
5.2.80.0030.03010.91
5.2.70.0000.06311.23
5.2.60.0000.03310.96
5.2.50.0030.03311.16
5.2.40.0030.02710.96
5.2.30.0030.03010.79
5.2.20.0000.03010.86
5.2.10.0030.03710.89
5.2.00.0070.05010.75
5.1.60.0070.0539.93
5.1.50.0100.04710.00
5.1.40.0070.0509.96
5.1.30.0100.05710.27
5.1.20.0030.06010.33
5.1.10.0000.03710.00
5.1.00.0270.03010.05
5.0.50.0030.0408.53
5.0.40.0100.0378.43
5.0.30.0130.0378.24
5.0.20.0100.0378.02
5.0.10.0000.0338.25
5.0.00.0000.0408.17
4.4.90.0030.0177.69
4.4.80.0000.0177.69
4.4.70.0000.0377.69
4.4.60.0030.0207.69
4.4.50.0030.0137.69
4.4.40.0070.0437.69
4.4.30.0100.0237.69
4.4.20.0030.0337.69
4.4.10.0030.0307.69
4.4.00.0070.0277.69
4.3.110.0000.0207.69
4.3.100.0030.0307.69
4.3.90.0030.0337.69
4.3.80.0030.0537.69
4.3.70.0030.0377.69
4.3.60.0070.0207.69
4.3.50.0000.0407.69
4.3.40.0000.0437.69
4.3.30.0100.0277.69
4.3.20.0000.0337.69
4.3.10.0000.0277.69
4.3.00.0000.0337.69

preferences:
37.94 ms | 401 KiB | 5 Q