3v4l.org

run code in 300+ PHP versions simultaneously
<?php $constant = 'STDOUT'; if (constant($constant) && ! is_scalar($constant)) { echo 'Yes, I am non-scalar constant'; }

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.0100.00716.58
8.3.60.0110.00818.31
8.3.50.0140.00122.87
8.3.40.0070.01418.54
8.3.30.0130.00019.01
8.3.20.0030.00520.12
8.3.10.0080.00021.73
8.3.00.0000.00817.78
8.2.180.0170.00316.38
8.2.170.0140.00322.96
8.2.160.0160.00018.79
8.2.150.0070.00024.18
8.2.140.0000.00724.66
8.2.130.0170.00326.16
8.2.120.0060.00321.09
8.2.110.0090.00019.45
8.2.100.0090.00317.78
8.2.90.0000.00819.26
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0080.00017.93
8.2.50.0040.00418.07
8.2.40.0080.00018.28
8.2.30.0070.00017.94
8.2.20.0040.00417.55
8.2.10.0040.00417.96
8.2.00.0040.00417.55
8.1.280.0030.01025.92
8.1.270.0060.00323.96
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00022.24
8.1.230.0100.00318.91
8.1.220.0040.00417.76
8.1.210.0060.00318.77
8.1.200.0000.00917.23
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0000.01118.50
8.1.160.0040.00422.05
8.1.150.0040.00418.91
8.1.140.0040.00417.39
8.1.130.0070.00017.87
8.1.120.0030.00517.37
8.1.110.0040.00417.31
8.1.100.0070.00017.45
8.1.90.0050.00217.35
8.1.80.0000.00817.49
8.1.70.0000.00717.32
8.1.60.0040.00417.59
8.1.50.0020.00517.41
8.1.40.0040.00417.52
8.1.30.0040.00417.69
8.1.20.0030.00517.63
8.1.10.0000.00717.42
8.1.00.0030.00617.40
8.0.300.0000.00918.77
8.0.290.0070.00016.63
8.0.280.0030.00318.48
8.0.270.0070.00017.09
8.0.260.0000.00617.24
8.0.250.0000.00617.00
8.0.240.0000.00916.95
8.0.230.0040.00416.95
8.0.220.0000.00716.93
8.0.210.0030.00316.77
8.0.200.0000.00817.01
8.0.190.0000.00816.83
8.0.180.0030.00516.91
8.0.170.0050.00316.95
8.0.160.0030.00716.95
8.0.150.0040.00416.82
8.0.140.0030.00316.71
8.0.130.0030.00313.30
8.0.120.0030.00516.77
8.0.110.0040.00416.75
8.0.100.0050.00316.90
8.0.90.0030.00316.90
8.0.80.0120.00916.93
8.0.70.0070.00016.76
8.0.60.0000.00816.94
8.0.50.0070.00016.93
8.0.30.0100.00816.95
8.0.20.0080.01217.40
8.0.10.0050.00216.88
8.0.00.0120.00716.62
7.4.330.0050.00015.10
7.4.320.0060.00016.51
7.4.300.0000.00616.59
7.4.290.0030.00316.64
7.4.280.0080.00416.49
7.4.270.0030.00316.43
7.4.260.0060.00316.44
7.4.250.0070.00016.39
7.4.240.0030.00316.61
7.4.230.0030.00316.39
7.4.220.0040.01516.61
7.4.210.0070.00716.54
7.4.200.0030.00316.63
7.4.160.0100.00616.43
7.4.150.0110.00817.40
7.4.140.0100.00717.86
7.4.130.0130.01616.41
7.4.120.0090.01116.43
7.4.110.0060.01016.36
7.4.100.0080.01516.59
7.4.90.0080.00816.45
7.4.80.0180.00519.39
7.4.70.0100.00616.46
7.4.60.0000.01616.42
7.4.50.0000.00416.50
7.4.40.0100.00716.55
7.4.30.0090.00916.53
7.4.00.0070.00815.03
7.3.330.0030.00312.93
7.3.320.0020.00213.11
7.3.310.0000.00715.97
7.3.300.0000.00716.12
7.3.290.0070.01016.13
7.3.280.0060.01016.10
7.3.270.0120.00617.40
7.3.260.0150.00416.21
7.3.250.0110.00716.19
7.3.240.0060.01216.41
7.3.230.0060.01016.39
7.3.210.0030.01316.31
7.3.200.0030.01419.39
7.3.190.0100.00716.34
7.3.180.0130.00316.31
7.3.170.0120.00416.27
7.3.160.0140.00716.24
7.3.120.0070.01114.72
7.3.110.0110.00414.32
7.3.100.0100.00614.95
7.3.90.0050.00514.94
7.3.80.0090.00014.36
7.3.70.0110.00314.73
7.3.60.0040.01214.71
7.3.50.0050.00314.47
7.3.40.0100.00714.67
7.3.30.0000.01414.52
7.3.20.0000.01216.40
7.3.10.0040.00716.41
7.3.00.0070.00316.56
7.2.330.0110.00716.37
7.2.320.0140.01116.64
7.2.310.0070.01016.61
7.2.300.0070.01016.46
7.2.290.0030.01316.55
7.2.250.0130.00615.12
7.2.240.0060.00914.89
7.2.230.0030.00914.74
7.2.220.0040.01214.79
7.2.210.0060.00614.77
7.2.200.0100.00614.83
7.2.190.0060.01014.70
7.2.180.0090.00915.00
7.2.170.0090.00614.70
7.2.60.0030.01016.63
7.2.00.0100.01319.27
7.1.330.0080.00615.66
7.1.320.0060.00615.44
7.1.310.0110.00415.85
7.1.300.0030.00615.54
7.1.290.0040.00815.81
7.1.280.0030.01015.80
7.1.270.0080.00515.52
7.1.260.0030.00715.76
7.1.200.0030.00815.74
7.1.100.0100.00318.13
7.1.70.0030.00517.06
7.1.60.0100.01419.40
7.1.50.0040.01916.86
7.1.00.0100.07322.44
7.0.200.0030.00316.79
7.0.140.0070.06322.11
7.0.60.0070.03719.93
7.0.50.0030.08317.81
7.0.40.0070.08320.05
7.0.30.0230.04320.09
7.0.20.0300.08320.17
7.0.10.0000.06020.20
7.0.00.0130.08320.13
5.6.280.0070.07320.98
5.6.210.0100.08020.70
5.6.200.0100.07318.12
5.6.190.0170.05320.48
5.6.180.0270.07720.60
5.6.170.0230.04020.42
5.6.160.0100.07720.44
5.6.150.0000.09318.15
5.6.140.0100.07718.21
5.6.130.0030.04318.18
5.6.120.0100.07020.97
5.6.110.0100.03720.99
5.6.100.0030.05020.97
5.6.90.0070.08321.05
5.6.80.0030.04720.53
5.5.350.0370.06720.41
5.5.340.0130.06318.02
5.5.330.0070.07720.57
5.5.320.0230.07020.41
5.5.310.0200.04320.23
5.5.300.0070.08018.03
5.5.290.0000.05018.02
5.5.280.0130.07720.86
5.5.270.0100.03720.96
5.5.260.0130.07720.87
5.5.250.0100.03320.65
5.5.240.0100.04720.34
5.4.450.0670.06019.47
5.4.440.0630.06719.23
5.4.430.0800.06319.14
5.4.420.0400.06319.37
5.4.410.0600.06019.20
5.4.400.0370.04718.75
5.4.390.0300.06018.59
5.4.380.0100.06018.72
5.4.370.0170.04018.60
5.4.360.0130.04318.56
5.4.350.0090.07011.97
5.4.340.0080.03411.97
5.4.320.0030.04012.45
5.4.310.0080.03712.45
5.4.300.0040.04012.45
5.4.290.0060.03712.45
5.4.280.0050.03512.35
5.4.270.0040.03712.34
5.4.260.0050.03712.34
5.4.250.0080.03412.34
5.4.240.0100.03112.35
5.4.230.0070.03812.34
5.4.220.0090.04412.34
5.4.210.0030.03812.34
5.4.200.0050.03712.34
5.4.190.0060.03512.33
5.4.180.0060.03712.34
5.4.170.0040.03812.34
5.4.160.0060.03712.34
5.4.150.0060.03712.34
5.4.140.0050.03912.02
5.4.130.0060.03512.01
5.4.120.0070.03411.96
5.4.110.0030.03911.96
5.4.100.0110.03111.96
5.4.90.0050.04211.96
5.4.80.0050.04111.96
5.4.70.0050.04111.96
5.4.60.0070.03411.96
5.4.50.0060.03711.96
5.4.40.0070.03711.95
5.4.30.0050.03511.95
5.4.20.0050.03511.95
5.4.10.0040.03611.95
5.4.00.0060.03511.43
5.3.290.0080.03712.80
5.3.280.0060.03712.71
5.3.270.0020.04212.72
5.3.260.0080.03712.72
5.3.250.0040.03912.72
5.3.240.0080.03912.71
5.3.230.0070.03512.71
5.3.220.0080.03712.68
5.3.210.0030.04112.68
5.3.200.0030.03912.68
5.3.190.0050.03712.68
5.3.180.0060.03612.68
5.3.170.0050.03712.67
5.3.160.0060.03612.67
5.3.150.0050.03812.68
5.3.140.0040.03912.66
5.3.130.0060.03912.66
5.3.120.0050.03912.66
5.3.110.0040.04012.66
5.3.100.0070.03512.12
5.3.90.0070.03512.08
5.3.80.0050.03712.08
5.3.70.0050.03712.08
5.3.60.0040.03812.06
5.3.50.0050.03612.00
5.3.40.0070.03512.00
5.3.30.0060.03411.94
5.3.20.0040.03711.71
5.3.10.0040.03711.69
5.3.00.0060.04211.67
5.2.170.0060.0339.18
5.2.160.0040.0299.18
5.2.150.0050.0309.18
5.2.140.0030.0369.17
5.2.130.0030.0339.13
5.2.120.0040.0299.13
5.2.110.0020.0329.14
5.2.100.0100.0299.14
5.2.90.0050.0359.13
5.2.80.0050.0339.13
5.2.70.0060.0319.13
5.2.60.0050.0329.09
5.2.50.0030.0409.05
5.2.40.0050.0399.03
5.2.30.0050.0419.00
5.2.20.0090.0408.99
5.2.10.0070.0288.91
5.2.00.0060.0318.77
5.1.60.0050.0248.06
5.1.50.0020.0338.06
5.1.40.0060.0248.04
5.1.30.0040.0288.39
5.1.20.0030.0278.41
5.1.10.0050.0258.13
5.1.00.0050.0268.14
5.0.50.0020.0226.61
5.0.40.0050.0186.47
5.0.30.0030.0336.29
5.0.20.0030.0206.26
5.0.10.0020.0216.23
5.0.00.0050.0316.22
4.4.90.0060.0154.78
4.4.80.0040.0144.76
4.4.70.0010.0164.76
4.4.60.0030.0144.75
4.4.50.0020.0154.77
4.4.40.0060.0284.70
4.4.30.0030.0154.76
4.4.20.0020.0164.85
4.4.10.0050.0134.84
4.4.00.0040.0234.76
4.3.110.0050.0134.66
4.3.100.0020.0154.66
4.3.90.0010.0164.63
4.3.80.0030.0244.59
4.3.70.0050.0124.63
4.3.60.0020.0154.63
4.3.50.0050.0144.63
4.3.40.0000.0274.54
4.3.30.0030.0143.28
4.3.20.0020.0163.25
4.3.10.0020.0163.21
4.3.00.0100.0237.20

preferences:
38.76 ms | 401 KiB | 5 Q