3v4l.org

run code in 300+ PHP versions simultaneously
<?php // a VERY evil line of code namespace a; define('t', true, true); define('a\\true', false, t); define('a\\false', t, t); $a = true; var_dump($a); $b = false; var_dump($b);

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.40.0130.00618.71
8.3.30.0040.01220.33
8.3.20.0070.00020.34
8.3.10.0080.00022.09
8.3.00.0080.00022.52
8.2.170.0110.00422.96
8.2.160.0030.01022.25
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0150.00026.16
8.2.120.0140.00021.07
8.2.110.0060.00320.97
8.2.100.0000.01217.72
8.2.90.0080.00017.84
8.2.80.0030.00518.09
8.2.70.0080.00017.63
8.2.60.0040.00419.23
8.2.50.0030.00617.63
8.2.40.0000.00819.36
8.2.30.0060.00319.55
8.2.20.0030.00617.59
8.2.10.0060.00317.58
8.2.00.0030.00617.66
8.1.270.0040.00423.99
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0080.00020.80
8.1.230.0060.00622.11
8.1.220.0000.00817.74
8.1.210.0070.00418.77
8.1.200.0000.01117.35
8.1.190.0030.00617.23
8.1.180.0080.00019.13
8.1.170.0000.00817.62
8.1.160.0070.00018.81
8.1.150.0000.00818.64
8.1.140.0070.00017.45
8.1.130.0000.00717.79
8.1.120.0030.00317.42
8.1.110.0000.00717.50
8.1.100.0000.00817.46
8.1.90.0030.00517.49
8.1.80.0070.00017.46
8.1.70.0030.00317.28
8.1.60.0000.00817.45
8.1.50.0000.00717.46
8.1.40.0040.00417.42
8.1.30.0020.00517.65
8.1.20.0060.00317.68
8.1.10.0000.00817.45
8.1.00.0060.00317.36
8.0.300.0050.00220.01
8.0.290.0000.00716.88
8.0.280.0040.00418.46
8.0.270.0000.00717.28
8.0.260.0000.00716.89
8.0.250.0020.00516.92
8.0.240.0080.00017.06
8.0.230.0030.00316.91
8.0.220.0040.00416.84
8.0.210.0070.00016.95
8.0.200.0070.00016.89
8.0.190.0000.00717.03
8.0.180.0040.00416.90
8.0.170.0000.00716.97
8.0.160.0040.00416.97
8.0.150.0030.00516.91
8.0.140.0000.00716.94
8.0.130.0030.00313.38
8.0.120.0040.00416.82
8.0.110.0040.00417.00
8.0.100.0000.00716.87
8.0.90.0050.00216.95
8.0.80.0120.00916.94
8.0.70.0040.00416.85
8.0.60.0040.00316.78
8.0.50.0000.00716.84
8.0.30.0040.01417.00
8.0.20.0090.01117.40
8.0.10.0000.00716.97
8.0.00.0110.00616.75
7.4.330.0020.00215.00
7.4.320.0000.00616.52
7.4.300.0000.00616.43
7.4.290.0000.00616.50
7.4.280.0000.00716.64
7.4.270.0030.00316.59
7.4.260.0000.00713.18
7.4.250.0070.00016.40
7.4.240.0040.00416.59
7.4.230.0000.00716.60
7.4.220.0190.00616.54
7.4.210.0060.00916.52
7.4.200.0000.00716.68
7.4.190.0050.00216.56
7.4.160.0080.00816.66
7.4.150.0170.00017.40
7.4.140.0120.01217.86
7.4.130.0110.00516.59
7.4.120.0150.00216.47
7.4.110.0070.01016.40
7.4.100.0070.01016.57
7.4.90.0150.00816.55
7.4.80.0150.00919.39
7.4.70.0130.00716.57
7.4.60.0000.01916.56
7.4.50.0030.00516.56
7.4.40.0030.01322.77
7.4.30.0030.01616.25
7.4.10.0090.00915.09
7.4.00.0050.01115.05
7.3.330.0050.00012.95
7.3.320.0000.00512.94
7.3.310.0040.00416.24
7.3.300.0040.00216.12
7.3.290.0090.00616.16
7.3.280.0090.00616.22
7.3.270.0140.00317.40
7.3.260.0040.01516.43
7.3.250.0140.00516.29
7.3.240.0030.01316.36
7.3.230.0070.01016.47
7.3.210.0060.01216.29
7.3.200.0130.00819.39
7.3.190.0140.00316.21
7.3.180.0080.00816.21
7.3.170.0100.00716.36
7.3.160.0090.00616.45
7.3.130.0000.01714.95
7.3.120.0080.00714.65
7.3.110.0110.00714.60
7.3.100.0120.00614.73
7.3.90.0060.00614.75
7.3.80.0090.00614.63
7.3.70.0000.01214.78
7.3.60.0030.01114.73
7.3.50.0080.00614.94
7.3.40.0040.00714.84
7.3.30.0030.00614.37
7.3.20.0040.01116.40
7.3.10.0110.00516.39
7.3.00.0040.01116.45
7.2.330.0090.00916.66
7.2.320.0110.00516.29
7.2.310.0060.01316.23
7.2.300.0080.00816.53
7.2.290.0110.00616.40
7.2.260.0070.01014.86
7.2.250.0030.01615.09
7.2.240.0000.01614.89
7.2.230.0130.00714.80
7.2.220.0070.01114.93
7.2.210.0060.00815.00
7.2.200.0110.00415.13
7.2.190.0080.00814.68
7.2.180.0090.00614.92
7.2.170.0040.01215.05
7.2.160.0030.01015.08
7.2.150.0100.00616.70
7.2.140.0110.00716.67
7.2.130.0070.00716.68
7.2.120.0050.01116.71
7.2.110.0050.00516.67
7.2.100.0050.01016.71
7.2.90.0100.00316.82
7.2.80.0040.00916.70
7.2.70.0050.00916.80
7.2.60.0100.00816.63
7.2.50.0060.00616.81
7.2.40.0050.00916.73
7.2.30.0030.01216.65
7.2.20.0110.00516.75
7.2.10.0090.00716.67
7.2.00.0020.01017.50
7.1.330.0070.00715.71
7.1.320.0110.00715.62
7.1.310.0030.00815.92
7.1.300.0060.00915.54
7.1.290.0030.00715.75
7.1.280.0060.00315.48
7.1.270.0030.01015.50
7.1.260.0100.00315.80
7.1.250.0030.01015.66
7.1.240.0060.00615.63
7.1.230.0070.00315.61
7.1.220.0030.01015.82
7.1.210.0030.01215.70
7.1.200.0040.01115.75
7.1.190.0030.00615.41
7.1.180.0070.00315.83
7.1.170.0030.00915.77
7.1.160.0030.00515.48
7.1.150.0000.00815.78
7.1.140.0070.01015.85
7.1.130.0090.01115.66
7.1.120.0030.00715.72
7.1.110.0060.00615.72
7.1.100.0090.00615.78
7.1.90.0120.00015.77
7.1.80.0030.00915.47
7.1.70.0040.00816.32
7.1.60.0080.00316.35
7.1.50.0050.01015.98
7.1.40.0000.01015.68
7.1.30.0040.01115.64
7.1.20.0110.00315.78
7.1.10.0000.01215.41
7.1.00.0060.02619.13
7.0.330.0030.01015.30
7.0.320.0060.00315.43
7.0.310.0060.00915.47
7.0.300.0100.00315.30
7.0.290.0070.00715.39
7.0.280.0040.01215.46
7.0.270.0040.01115.55
7.0.260.0070.00715.27
7.0.250.0090.00615.50
7.0.240.0040.00415.51
7.0.230.0040.00415.20
7.0.220.0040.01115.22
7.0.210.0080.00415.16
7.0.200.0020.00916.02
7.0.190.0000.01115.17
7.0.180.0070.00715.57
7.0.170.0070.00415.48
7.0.160.0040.00715.55
7.0.150.0090.00615.54
7.0.140.0050.04118.61
7.0.130.0070.00715.46
7.0.120.0000.01115.52
7.0.110.0000.01115.33
7.0.100.0170.03517.67
7.0.90.0050.03217.58
7.0.80.0070.04717.80
7.0.70.0030.04517.67
7.0.60.0050.03617.56
7.0.50.0210.03617.89
7.0.40.0060.04616.83
7.0.30.0080.03816.78
7.0.20.0160.03516.70
7.0.10.0120.04016.82
7.0.00.0030.04816.79
5.6.400.0000.01014.18
5.6.390.0030.01313.84
5.6.380.0060.00914.29
5.6.370.0070.00414.05
5.6.360.0030.01014.44
5.6.350.0000.01414.29
5.6.340.0090.00314.46
5.6.330.0100.00014.34
5.6.320.0090.00614.11
5.6.310.0090.00614.17
5.6.300.0000.01214.48
5.6.290.0100.00714.26
5.6.280.0030.03517.55
5.6.270.0030.00614.57
5.6.260.0100.00314.33
5.6.250.0070.04217.44
5.6.240.0070.05017.48
5.6.230.0100.04017.35
5.6.220.0020.03317.42
5.6.210.0060.03417.51
5.6.200.0060.04617.75
5.6.190.0080.04317.51
5.6.180.0100.03617.69
5.6.170.0090.04217.49
5.6.160.0030.04817.71
5.6.150.0080.04317.67
5.6.140.0070.04517.64
5.6.130.0050.04917.73
5.6.120.0080.03717.73
5.6.110.0140.03717.61
5.6.100.0080.04417.46
5.6.90.0070.04417.60
5.6.80.0090.04017.34
5.6.70.0150.04017.46
5.6.60.0060.03117.28
5.6.50.0060.03017.30
5.6.40.0050.04517.44
5.6.30.0100.04317.34
5.6.20.0120.03617.43
5.6.10.0080.03917.26
5.6.00.0070.04217.21
5.5.380.0060.03817.38
5.5.370.0060.04317.36
5.5.360.0060.04017.54
5.5.350.0080.03317.19
5.5.340.0100.04217.52
5.5.330.0100.04017.51
5.5.320.0080.04017.44
5.5.310.0050.04717.40
5.5.300.0080.04017.50
5.5.290.0080.04417.27
5.5.280.0050.04617.54
5.5.270.0090.04217.67
5.5.260.0150.03817.51
5.5.250.0030.04517.42
5.5.240.0050.02517.22
5.5.230.0020.04917.26
5.5.220.0030.04717.16
5.5.210.0050.04717.08
5.5.200.0030.04817.19
5.5.190.0120.03917.27
5.5.180.0070.02617.19
5.5.170.0070.00714.19
5.5.160.0030.04217.23
5.5.150.0070.04217.10
5.5.140.0080.04117.21
5.5.130.0080.04017.18
5.5.120.0100.04017.10
5.5.110.0020.03517.01
5.5.100.0020.04517.10
5.5.90.0070.04117.02
5.5.80.0090.02016.88
5.5.70.0030.03016.98
5.5.60.0100.04117.03
5.5.50.0070.04217.10
5.5.40.0030.03017.12
5.5.30.0040.04516.91
5.5.20.0040.04017.10
5.5.10.0130.03517.11
5.5.00.0050.04317.06
5.4.450.0080.02515.57
5.4.440.0050.04515.47
5.4.430.0050.03515.47
5.4.420.0050.04115.64
5.4.410.0020.03515.54
5.4.400.0070.03415.49
5.4.390.0030.04115.41
5.4.380.0080.03615.43
5.4.370.0070.04615.51
5.4.360.0050.03515.46
5.4.350.0100.03115.49
5.4.340.0070.03715.44
5.4.330.0040.00711.84
5.4.320.0050.04015.42
5.4.310.0050.04315.46
5.4.300.0020.04315.47
5.4.290.0020.02515.49
5.4.280.0050.04015.46
5.4.270.0070.03515.47
5.4.260.0050.03915.39
5.4.250.0080.03515.40
5.4.240.0030.03515.39
5.4.230.0070.04015.48
5.4.220.0040.04415.45
5.4.210.0030.03515.40
5.4.200.0030.03515.44
5.4.190.0070.01615.43
5.4.180.0090.03715.44
5.4.170.0030.02615.46
5.4.160.0090.03915.38
5.4.150.0060.02815.47
5.4.140.0100.03713.95
5.4.130.0050.03714.09
5.4.120.0090.03114.06
5.4.110.0040.04214.12
5.4.100.0080.03314.14
5.4.90.0050.03814.11
5.4.80.0080.03514.02
5.4.70.0050.03714.03
5.4.60.0050.02814.13
5.4.50.0050.03514.09
5.4.40.0080.04014.12
5.4.30.0010.04114.02
5.4.20.0050.04014.12
5.4.10.0070.03714.12
5.4.00.0080.03313.82
5.3.290.0050.04013.16
5.3.280.0080.03913.19
5.3.270.0100.03013.22
5.3.260.0080.03713.15
5.3.250.0070.03513.20
5.3.240.0130.03213.23
5.3.230.0050.04013.22
5.3.220.0070.03513.18
5.3.210.0090.03913.20
5.3.200.0050.03513.20
5.3.190.0050.03913.13
5.3.180.0070.02213.18
5.3.170.0070.04013.18
5.3.160.0030.03613.11
5.3.150.0100.03613.20
5.3.140.0030.04013.20
5.3.130.0080.03413.18
5.3.120.0080.03913.10
5.3.110.0080.03513.18
5.3.100.0080.04012.92
5.3.90.0030.02512.90
5.3.80.0090.03312.92
5.3.70.0070.02312.86
5.3.60.0090.03812.93
5.3.50.0030.04112.78
5.3.40.0050.03312.82
5.3.30.0040.04012.80
5.3.20.0050.03812.75
5.3.10.0030.04012.74
5.3.00.0030.03812.67
5.2.170.0070.05711.21
5.2.160.0070.06011.09
5.2.150.0030.02711.19
5.2.140.0070.06311.13
5.2.130.0000.06011.16
5.2.120.0030.04711.14
5.2.110.0030.06711.16
5.2.100.0070.06011.14
5.2.90.0030.06310.93
5.2.80.0030.06311.01
5.2.70.0070.05311.09
5.2.60.0030.06311.03
5.2.50.0100.05710.81
5.2.40.0100.06010.99
5.2.30.0070.05010.83
5.2.20.0000.05010.96
5.2.10.0030.04710.93
5.2.00.0030.04010.75
5.1.60.0000.0579.83
5.1.50.0000.05710.04
5.1.40.0030.05010.03
5.1.30.0070.05310.36
5.1.20.0000.05710.30
5.1.10.0130.0479.90
5.1.00.0100.04710.12
5.0.50.0070.0438.56
5.0.40.0100.0408.56
5.0.30.0000.0438.56
5.0.20.0030.0438.56
5.0.10.0030.0438.56
5.0.00.0000.0708.56
4.4.90.0070.0278.56
4.4.80.0070.0278.56
4.4.70.0030.0378.56
4.4.60.0000.0408.56
4.4.50.0030.0278.56
4.4.40.0070.0478.56
4.4.30.0030.0238.56
4.4.20.0000.0408.56
4.4.10.0000.0378.56
4.4.00.0030.0478.56
4.3.110.0030.0378.56
4.3.100.0070.0278.56
4.3.90.0030.0378.56
4.3.80.0100.0478.56
4.3.70.0030.0338.56
4.3.60.0030.0308.56
4.3.50.0030.0338.56
4.3.40.0030.0478.56
4.3.30.0000.0338.56
4.3.20.0030.0338.56
4.3.10.0000.0378.56
4.3.00.0000.0378.56

preferences:
40.16 ms | 400 KiB | 5 Q