3v4l.org

run code in 300+ PHP versions simultaneously
<?php $constant = 'STDOUT'; if (defined($constant) && 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.60.0160.00618.18
8.3.50.0120.00322.74
8.3.40.0070.00718.77
8.3.30.0130.00018.82
8.3.20.0070.00020.16
8.3.10.0070.00021.80
8.3.00.0040.00417.68
8.2.180.0100.01016.75
8.2.170.0170.00322.96
8.2.160.0130.00020.35
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0150.00326.16
8.2.120.0040.00421.01
8.2.110.0030.00721.11
8.2.100.0090.00317.72
8.2.90.0090.00019.05
8.2.80.0050.00317.97
8.2.70.0030.00517.50
8.2.60.0000.00917.93
8.2.50.0000.00918.07
8.2.40.0050.00218.16
8.2.30.0000.00717.97
8.2.20.0000.00717.64
8.2.10.0050.00318.05
8.2.00.0050.00217.54
8.1.280.0070.00725.92
8.1.270.0060.00323.95
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0090.00022.23
8.1.230.0080.00419.04
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0040.00417.22
8.1.180.0000.00918.10
8.1.170.0120.00018.39
8.1.160.0040.00422.05
8.1.150.0040.00418.87
8.1.140.0000.00817.43
8.1.130.0070.00019.66
8.1.120.0000.00817.52
8.1.110.0030.00517.32
8.1.100.0070.00017.32
8.1.90.0040.00417.45
8.1.80.0050.00217.31
8.1.70.0030.00317.40
8.1.60.0040.00417.57
8.1.50.0040.00417.47
8.1.40.0030.00617.41
8.1.30.0000.00817.56
8.1.20.0050.00217.62
8.1.10.0030.00617.37
8.1.00.0040.00417.31
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0040.00418.44
8.0.270.0000.00717.28
8.0.260.0030.00317.25
8.0.250.0000.00616.82
8.0.240.0030.00616.90
8.0.230.0030.00316.98
8.0.220.0060.00016.75
8.0.210.0040.00416.88
8.0.200.0000.00716.95
8.0.190.0000.00717.00
8.0.180.0000.00716.90
8.0.170.0040.00416.83
8.0.160.0030.00716.81
8.0.150.0000.00716.73
8.0.140.0040.00416.76
8.0.130.0000.00513.32
8.0.120.0050.00316.82
8.0.110.0040.00416.82
8.0.100.0040.00416.76
8.0.90.0000.00816.78
8.0.80.0130.00416.82
8.0.70.0070.00016.74
8.0.60.0000.00816.95
8.0.50.0040.00416.94
8.0.30.0130.00617.11
8.0.20.0100.01017.40
8.0.10.0070.00016.84
8.0.00.0110.01116.74
7.4.330.0000.00615.15
7.4.320.0000.00616.52
7.4.300.0030.00316.59
7.4.290.0000.00716.53
7.4.280.0100.00016.59
7.4.270.0000.00816.52
7.4.260.0030.00316.58
7.4.250.0000.00716.53
7.4.240.0020.00516.59
7.4.230.0040.00416.60
7.4.220.0140.00316.46
7.4.210.0070.00716.46
7.4.200.0070.00016.59
7.4.160.0150.00016.49
7.4.150.0090.00917.40
7.4.140.0080.00817.86
7.4.130.0050.01316.53
7.4.120.0030.01616.47
7.4.110.0030.01316.26
7.4.100.0120.00916.35
7.4.90.0110.00616.51
7.4.80.0160.00719.39
7.4.70.0150.00616.35
7.4.60.0090.00616.58
7.4.50.0040.00416.44
7.4.40.0040.01316.50
7.4.30.0070.00816.50
7.4.00.0080.01014.84
7.3.330.0060.00013.01
7.3.320.0030.00313.05
7.3.310.0030.00316.17
7.3.300.0000.00716.02
7.3.290.0060.00916.16
7.3.280.0090.00816.13
7.3.270.0140.00317.40
7.3.260.0100.00716.31
7.3.250.0100.00916.22
7.3.240.0120.00916.24
7.3.230.0110.00716.39
7.3.210.0100.00716.37
7.3.200.0090.01419.39
7.3.190.0140.00816.18
7.3.180.0090.01216.40
7.3.170.0090.01216.50
7.3.160.0070.01416.32
7.3.120.0070.01014.52
7.3.110.0050.01014.54
7.3.100.0030.01014.57
7.3.90.0090.00414.69
7.3.80.0080.00714.77
7.3.70.0030.00614.50
7.3.60.0040.01014.53
7.3.50.0090.00614.55
7.3.40.0100.00714.71
7.3.30.0050.00514.54
7.3.20.0040.00816.56
7.3.10.0080.00816.46
7.3.00.0030.01416.68
7.2.330.0120.00916.53
7.2.320.0110.01116.48
7.2.310.0060.01016.61
7.2.300.0120.00616.43
7.2.290.0100.01016.36
7.2.250.0090.01014.74
7.2.240.0020.01614.81
7.2.230.0020.01214.79
7.2.220.0050.00714.72
7.2.210.0080.00514.93
7.2.200.0020.00914.62
7.2.190.0060.00714.86
7.2.180.0030.01214.91
7.2.170.0080.00314.76
7.2.160.0000.01114.95
7.2.150.0000.01316.72
7.2.140.0100.00316.81
7.2.130.0070.00716.81
7.2.120.0120.00316.57
7.2.110.0120.00316.67
7.2.100.0070.01016.43
7.2.90.0130.00616.89
7.2.80.0030.00916.81
7.2.70.0060.01316.88
7.2.60.0100.00716.82
7.2.50.0060.00916.88
7.2.40.0060.00916.55
7.2.30.0030.00916.62
7.2.20.0090.00616.98
7.2.10.0030.01316.81
7.2.00.0020.01317.96
7.1.330.0030.00915.69
7.1.320.0060.00915.65
7.1.310.0120.00615.60
7.1.300.0070.00515.66
7.1.290.0080.00715.55
7.1.280.0050.00415.67
7.1.270.0060.00815.54
7.1.260.0050.00715.72
7.1.250.0060.00615.75
7.1.100.0030.00617.77
7.1.70.0000.00716.96
7.1.60.0130.00719.40
7.1.50.0040.01216.90
7.1.00.0070.07022.45
7.0.200.0000.00716.79
7.0.140.0030.07021.91
7.0.60.0200.06320.03
7.0.50.0130.05317.80
7.0.40.0100.08020.20
7.0.30.0230.07320.10
7.0.20.0130.04320.00
7.0.10.0130.07720.22
7.0.00.0130.07020.16
5.6.210.0070.08020.62
5.6.200.0270.02718.18
5.6.190.0130.07720.46
5.6.180.0200.04720.41
5.6.170.0400.05320.39
5.6.160.0100.08320.33
5.6.150.0070.03718.12
5.6.140.0130.07718.14
5.6.130.0000.04318.23
5.6.120.0070.06721.00
5.6.110.0130.07720.99
5.6.100.0030.08321.00
5.6.90.0070.04720.96
5.6.80.0030.04320.50
5.5.350.0070.08020.37
5.5.340.0070.05317.91
5.5.330.0070.04020.21
5.5.320.0330.06020.17
5.5.310.0400.06720.26
5.5.300.0030.04717.88
5.5.290.0130.07718.02
5.5.280.0130.07720.64
5.5.270.0070.05020.80
5.5.260.0100.08020.95
5.5.250.0130.05720.61
5.5.240.0170.03720.36
5.4.450.0470.03719.46
5.4.440.0200.05019.41
5.4.430.0770.04319.44
5.4.420.0230.03719.45
5.4.410.0500.04719.43
5.4.400.0530.03719.25
5.4.390.0330.04719.24
5.4.380.0870.05018.58
5.4.370.0470.05718.50
5.4.360.1130.06018.60
5.4.350.1000.05018.48
5.4.340.0600.06018.68
5.4.320.0050.03712.45
5.4.310.0060.03812.45
5.4.300.0050.04012.46
5.4.290.0050.04012.45
5.4.280.0060.03612.35
5.4.270.0060.03712.35
5.4.260.0050.03912.34
5.4.250.0090.04012.35
5.4.240.0080.03312.34
5.4.230.0070.04012.34
5.4.220.0120.04812.34
5.4.210.0090.04912.34
5.4.200.0060.04712.34
5.4.190.0090.04212.34
5.4.180.0060.04412.34
5.4.170.0060.04312.35
5.4.160.0100.03412.34
5.4.150.0080.03712.34
5.4.140.0050.04112.02
5.4.130.0120.05012.01
5.4.120.0060.04511.97
5.4.110.0060.03711.96
5.4.100.0090.04311.96
5.4.90.0070.05311.96
5.4.80.0080.04911.96
5.4.70.0100.04511.96
5.4.60.0030.04811.96
5.4.50.0130.04311.96
5.4.40.0110.04411.95
5.4.30.0080.04711.95
5.4.20.0080.04911.95
5.4.10.0070.05011.95
5.4.00.0070.04011.44
5.3.290.0050.04012.80
5.3.280.0090.03712.71
5.3.270.0080.04412.72
5.3.260.0090.04312.72
5.3.250.0060.03912.72
5.3.240.0080.04312.72
5.3.230.0060.04212.71
5.3.220.0080.03512.68
5.3.210.0060.04812.68
5.3.200.0040.03912.68
5.3.190.0100.05012.68
5.3.180.0070.04512.67
5.3.170.0080.04312.67
5.3.160.0100.05112.68
5.3.150.0090.05212.68
5.3.140.0080.03712.66
5.3.130.0050.04112.66
5.3.120.0080.03712.66
5.3.110.0040.04012.66
5.3.100.0050.03712.12
5.3.90.0060.04012.08
5.3.80.0070.04212.08
5.3.70.0050.04012.08
5.3.60.0070.03612.06
5.3.50.0090.04512.00
5.3.40.0110.03612.00
5.3.30.0070.04011.94
5.3.20.0050.04011.72
5.3.10.0110.04911.69
5.3.00.0060.03911.67
5.2.170.0030.0379.18
5.2.160.0070.0289.18
5.2.150.0020.0359.18
5.2.140.0030.0329.18
5.2.130.0030.0379.14
5.2.120.0100.0249.14
5.2.110.0020.0329.14
5.2.100.0020.0329.14
5.2.90.0070.0369.13
5.2.80.0110.0439.13
5.2.70.0040.0329.13
5.2.60.0060.0299.08
5.2.50.0060.0379.06
5.2.40.0110.0359.03
5.2.30.0100.0389.01
5.2.20.0020.0329.00
5.2.10.0040.0308.91
5.2.00.0020.0358.78
5.1.60.0040.0248.06
5.1.50.0050.0298.06
5.1.40.0050.0348.04
5.1.30.0090.0338.39
5.1.20.0040.0318.41
5.1.10.0060.0298.13
5.1.00.0030.0388.13
5.0.50.0050.0286.62
5.0.40.0070.0216.47
5.0.30.0060.0386.29
5.0.20.0080.0206.25
5.0.10.0020.0266.23
5.0.00.0050.0316.23
4.4.90.0090.0104.78
4.4.80.0040.0144.76
4.4.70.0010.0174.75
4.4.60.0030.0164.75
4.4.50.0030.0164.77
4.4.40.0050.0234.71
4.4.30.0030.0164.76
4.4.20.0010.0174.84
4.4.10.0020.0174.85
4.4.00.0060.0224.75
4.3.110.0010.0184.67
4.3.100.0020.0194.67
4.3.90.0020.0174.63
4.3.80.0050.0304.58
4.3.70.0040.0194.63
4.3.60.0040.0194.62
4.3.50.0040.0174.63
4.3.40.0030.0254.54
4.3.30.0010.0183.28
4.3.20.0010.0183.26
4.3.10.0020.0163.22
4.3.00.0130.01315.89

preferences:
57.26 ms | 401 KiB | 5 Q