3v4l.org

run code in 300+ PHP versions simultaneously
<?php $constant = 'STDIN'; if (defined($constant) && ! is_scalar(constant($constant)) && ! is_resource(constant($constant))) { echo "Yes, I am non-scalar and non-resource constant!\n";}

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.0070.00716.50
8.3.50.0140.00523.00
8.3.40.0130.00318.67
8.3.30.0070.00718.93
8.3.20.0040.00420.23
8.3.10.0080.00021.73
8.3.00.0040.00417.63
8.2.180.0120.00616.38
8.2.170.0140.00022.96
8.2.160.0030.01020.52
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0120.00626.16
8.2.120.0080.00021.08
8.2.110.0080.00322.43
8.2.100.0070.00419.25
8.2.90.0080.00017.84
8.2.80.0040.00419.35
8.2.70.0000.00818.03
8.2.60.0040.00417.93
8.2.50.0040.00418.10
8.2.40.0000.00820.61
8.2.30.0040.00418.11
8.2.20.0040.00417.61
8.2.10.0070.00018.07
8.2.00.0000.00717.62
8.1.280.0030.01125.92
8.1.270.0030.00623.87
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0070.01022.09
8.1.230.0070.00420.98
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0060.00317.13
8.1.190.0040.00417.10
8.1.180.0030.00518.10
8.1.170.0030.00518.50
8.1.160.0070.00022.15
8.1.150.0040.00418.92
8.1.140.0040.00417.45
8.1.130.0030.00317.74
8.1.120.0070.00017.49
8.1.110.0030.00617.38
8.1.100.0050.00317.47
8.1.90.0040.00417.46
8.1.80.0070.00017.36
8.1.70.0080.00017.33
8.1.60.0050.00317.50
8.1.50.0080.00017.48
8.1.40.0040.00417.49
8.1.30.0050.00317.67
8.1.20.0000.00817.62
8.1.10.0060.00317.37
8.1.00.0000.00717.38
8.0.300.0040.00420.12
8.0.290.0070.00016.63
8.0.280.0000.00818.36
8.0.270.0070.00017.17
8.0.260.0030.00317.26
8.0.250.0030.00316.90
8.0.240.0050.00316.82
8.0.230.0030.00316.95
8.0.220.0000.00716.93
8.0.210.0030.00316.86
8.0.200.0030.00317.00
8.0.190.0030.00516.96
8.0.180.0030.00516.77
8.0.170.0040.00416.95
8.0.160.0030.00816.88
8.0.150.0050.00316.88
8.0.140.0030.00516.86
8.0.130.0060.00013.27
8.0.120.0050.00316.90
8.0.110.0050.00216.90
8.0.100.0040.00416.79
8.0.90.0070.00016.95
8.0.80.0100.00616.88
8.0.70.0040.00416.92
8.0.60.0040.00416.93
8.0.50.0040.00416.93
8.0.30.0150.00717.06
8.0.20.0110.00817.40
8.0.10.0070.00016.95
8.0.00.0120.00616.61
7.4.330.0050.00015.00
7.4.320.0000.00616.50
7.4.300.0000.00616.60
7.4.290.0030.00316.43
7.4.280.0000.01016.57
7.4.270.0030.00316.43
7.4.260.0090.00016.49
7.4.250.0030.00316.57
7.4.240.0030.00316.49
7.4.230.0070.00016.71
7.4.220.0100.01016.46
7.4.210.0070.00816.54
7.4.200.0030.00316.40
7.4.160.0110.00416.55
7.4.150.0130.00317.40
7.4.140.0080.00817.86
7.4.130.0060.01116.46
7.4.120.0120.00616.54
7.4.110.0130.00316.27
7.4.100.0090.00916.33
7.4.90.0040.01216.45
7.4.80.0140.00319.39
7.4.70.0100.00616.43
7.4.60.0110.01116.41
7.4.50.0000.00416.37
7.4.40.0130.00916.51
7.4.30.0080.00816.51
7.4.00.0100.00614.85
7.3.330.0060.00013.05
7.3.320.0000.00513.05
7.3.310.0040.00416.09
7.3.300.0000.00716.13
7.3.290.0030.01416.19
7.3.280.0100.00816.20
7.3.270.0170.00717.40
7.3.260.0100.01016.23
7.3.250.0090.00716.35
7.3.240.0070.01016.27
7.3.230.0030.01316.39
7.3.210.0030.01316.23
7.3.200.0130.01019.39
7.3.190.0090.01216.37
7.3.180.0070.01016.16
7.3.170.0060.00916.27
7.3.160.0100.01016.16
7.3.120.0120.00314.95
7.3.110.0130.00214.72
7.3.100.0070.00714.52
7.3.90.0060.00914.66
7.3.80.0070.01014.64
7.3.70.0070.01114.92
7.3.60.0100.00314.70
7.3.50.0040.00714.62
7.3.40.0070.00414.73
7.3.30.0030.00914.57
7.3.20.0070.00716.61
7.3.10.0140.00016.54
7.3.00.0110.00916.54
7.2.330.0120.00916.50
7.2.320.0060.01216.62
7.2.310.0040.01516.43
7.2.300.0100.00716.61
7.2.290.0070.01016.28
7.2.250.0120.00615.14
7.2.240.0070.01315.21
7.2.230.0060.01315.11
7.2.220.0120.00615.08
7.2.210.0030.00715.08
7.2.200.0060.00614.74
7.2.190.0060.00914.94
7.2.180.0100.00714.93
7.2.170.0000.01114.98
7.2.130.0110.01116.78
7.2.120.0180.00716.58
7.2.110.0210.00416.36
7.2.100.0000.01616.63
7.2.90.0120.00816.30
7.2.80.0070.01416.95
7.2.70.0170.00416.70
7.2.60.0140.00616.75
7.2.50.0150.00616.79
7.2.40.0210.00416.79
7.2.30.0150.00616.89
7.2.20.0070.01416.60
7.2.10.0070.01516.77
7.2.00.0150.00316.59
7.1.330.0060.00615.73
7.1.320.0090.00015.63
7.1.310.0100.00315.73
7.1.300.0060.00315.67
7.1.290.0000.01615.61
7.1.280.0080.00415.91
7.1.270.0040.00715.62
7.1.260.0060.00615.76
7.1.250.0170.00015.60
7.1.240.0170.00615.32
7.1.230.0210.00415.65
7.1.220.0090.00915.29
7.1.210.0160.00615.56
7.1.200.0030.01015.32
7.1.190.0160.00315.59
7.1.180.0200.00015.67
7.1.170.0100.00615.59
7.1.160.0000.01615.66
7.1.150.0180.00015.40
7.1.140.0110.00715.59
7.1.130.0190.00015.48
7.1.120.0180.00415.54
7.1.110.0160.00615.39
7.1.100.0160.00615.50
7.1.90.0140.00715.53
7.1.80.0070.01115.57
7.1.70.0070.00616.35
7.1.60.0110.01017.53
7.1.50.0090.01316.31
7.1.40.0160.00515.67
7.1.30.0170.00715.77
7.1.20.0170.00615.47
7.1.10.0050.00515.48
7.1.00.0110.04118.86
7.0.330.0190.00815.27
7.0.320.0150.00714.94
7.0.310.0090.00615.37
7.0.300.0070.01015.14
7.0.290.0070.01015.07
7.0.280.0080.00815.20
7.0.270.0070.01115.54
7.0.260.0090.00915.14
7.0.250.0070.01015.25
7.0.240.0120.01215.24
7.0.230.0150.00015.32
7.0.220.0100.00715.25
7.0.210.0100.00715.23
7.0.200.0080.00416.06
7.0.190.0090.00915.46
7.0.180.0130.00715.20
7.0.170.0110.00415.30
7.0.160.0120.00915.02
7.0.150.0170.01015.02
7.0.140.0140.03318.54
7.0.130.0100.01315.28
7.0.120.0180.01115.21
7.0.110.0120.01215.43
7.0.100.0190.00315.19
7.0.90.0170.00715.45
7.0.80.0110.01115.40
7.0.70.0270.00015.34
7.0.60.0100.02917.63
7.0.50.0180.04016.61
7.0.40.0120.02216.64
7.0.30.0150.02216.67
7.0.20.0160.03916.79
7.0.10.0090.02516.79
7.0.00.0090.02016.71
5.6.380.0040.01114.20
5.6.370.0150.00613.75
5.6.360.0030.01714.14
5.6.350.0040.01814.20
5.6.340.0240.00314.43
5.6.330.0130.01313.83
5.6.320.0150.00914.36
5.6.310.0000.02114.17
5.6.300.0210.00014.56
5.6.290.0160.00814.36
5.6.280.0090.04017.67
5.6.270.0100.00814.16
5.6.260.0130.00614.15
5.6.250.0000.01514.30
5.6.240.0100.01014.23
5.6.230.0100.01014.18
5.6.220.0090.00613.84
5.6.210.0090.03717.46
5.6.200.0140.03916.14
5.6.190.0090.02317.31
5.6.180.0190.03417.29
5.6.170.0170.04517.15
5.6.160.0080.02517.19
5.6.150.0090.03716.08
5.6.140.0100.04616.06
5.6.130.0090.02616.16
5.6.120.0150.03517.78
5.6.110.0120.04617.48
5.6.100.0100.04917.67
5.6.90.0070.02417.63
5.6.80.0080.04517.06
5.6.70.0060.00614.21
5.6.60.0000.01413.91
5.6.50.0030.01213.89
5.6.40.0030.00513.99
5.6.30.0070.00714.43
5.6.20.0030.00814.35
5.6.10.0060.00614.21
5.6.00.0030.01014.26
5.5.380.0040.00411.18
5.5.370.0060.00611.18
5.5.360.0000.01211.18
5.5.350.0080.04215.80
5.5.340.0090.03614.59
5.5.330.0090.04615.62
5.5.320.0240.03815.74
5.5.310.0220.04115.74
5.5.300.0070.03414.53
5.5.290.0050.04414.53
5.5.280.0090.04015.93
5.5.270.0100.04316.07
5.5.260.0000.03215.98
5.5.250.0120.03815.82
5.5.240.0200.03815.66
5.5.230.0000.01011.18
5.5.220.0030.00311.18
5.5.210.0080.00011.18
5.5.200.0060.00011.18
5.5.190.0050.00511.18
5.5.180.0030.00711.18
5.5.170.0000.00911.18
5.5.160.0000.01011.18
5.5.150.0000.01011.18
5.5.140.0070.00011.18
5.5.130.0060.00611.18
5.5.120.0040.00411.18
5.5.110.0070.00311.18
5.5.100.0100.00011.18
5.5.90.0000.00711.18
5.5.80.0040.00811.18
5.5.70.0090.00011.18
5.5.60.0100.00311.18
5.5.50.0060.00011.18
5.5.40.0070.00311.18
5.5.30.0040.00411.18
5.5.20.0070.00311.18
5.5.10.0040.00411.18
5.5.00.0030.00711.18
5.4.450.0130.02515.34
5.4.440.0150.02915.37
5.4.430.0120.02715.31
5.4.420.0250.02215.33
5.4.410.0150.02615.30
5.4.400.0170.02015.06
5.4.390.0130.02315.21
5.4.380.0080.02814.83
5.4.370.0110.02514.92
5.4.360.0080.03814.88
5.4.350.0070.03514.92
5.4.340.0090.02914.92
5.4.330.0040.00811.18
5.4.320.0050.02111.81
5.4.310.0090.01811.81
5.4.300.0030.02511.81
5.4.290.0060.02411.81
5.4.280.0090.02211.76
5.4.270.0040.02411.76
5.4.260.0050.02211.76
5.4.250.0060.02111.76
5.4.240.0070.02011.76
5.4.230.0040.02511.76
5.4.220.0020.02411.76
5.4.210.0060.01911.76
5.4.200.0030.02111.76
5.4.190.0040.02311.76
5.4.180.0060.01911.75
5.4.170.0080.02011.76
5.4.160.0070.01711.76
5.4.150.0040.02111.76
5.4.140.0050.02111.60
5.4.130.0030.02011.59
5.4.120.0070.01611.57
5.4.110.0060.02011.57
5.4.100.0020.02311.57
5.4.90.0040.02111.57
5.4.80.0070.02411.57
5.4.70.0060.02011.57
5.4.60.0040.02211.57
5.4.50.0070.02011.57
5.4.40.0040.02111.56
5.4.30.0060.02111.56
5.4.20.0050.01911.56
5.4.10.0040.02011.56
5.4.00.0070.01811.30
5.3.290.0050.02311.99
5.3.280.0050.02011.94
5.3.270.0050.02511.95
5.3.260.0070.02411.95
5.3.250.0050.02011.95
5.3.240.0060.02411.95
5.3.230.0060.02311.94
5.3.220.0040.02111.93
5.3.210.0030.02211.93
5.3.200.0040.02611.93
5.3.190.0060.02311.93
5.3.180.0050.02111.93
5.3.170.0050.02011.92
5.3.160.0060.01911.92
5.3.150.0020.02611.93
5.3.140.0070.01911.92
5.3.130.0060.02011.92
5.3.120.0060.02511.91
5.3.110.0070.02111.92
5.3.100.0080.01811.64
5.3.90.0020.02111.63
5.3.80.0040.02111.63
5.3.70.0070.01811.63
5.3.60.0030.02311.62
5.3.50.0050.02111.59
5.3.40.0040.02111.59
5.3.30.0090.02111.56
5.3.20.0080.01811.45
5.3.10.0040.02111.43
5.3.00.0020.02311.43
5.2.170.0060.01810.18
5.2.160.0050.01510.18
5.2.150.0090.01810.18
5.2.140.0050.01710.18
5.2.130.0030.01810.15
5.2.120.0060.01410.16
5.2.110.0060.01510.16
5.2.100.0030.01910.16
5.2.90.0040.01810.16
5.2.80.0020.01910.15
5.2.70.0020.01910.15
5.2.60.0050.01710.13
5.2.50.0050.01410.12
5.2.40.0020.02010.10
5.2.30.0040.01510.09
5.2.20.0040.01410.08
5.2.10.0040.01510.04
5.2.00.0050.0149.98
5.1.60.0020.0159.62
5.1.50.0060.0149.62
5.1.40.0040.0169.61
5.1.30.0060.0129.78
5.1.20.0040.0199.79
5.1.10.0020.0159.66
5.1.00.0020.0179.65
5.0.50.0040.0108.90
5.0.40.0040.0118.82
5.0.30.0010.0188.73
5.0.20.0040.0118.72
5.0.10.0030.0118.71
5.0.00.0050.0148.70
4.4.90.0020.0127.98
4.4.80.0020.0127.96
4.4.70.0020.0157.96
4.4.60.0040.0077.97
4.4.50.0040.0097.97
4.4.40.0030.0157.94
4.4.30.0020.0117.97
4.4.20.0020.0118.01
4.4.10.0040.0078.01
4.4.00.0020.0147.96
4.3.110.0040.0077.92
4.3.100.0020.0097.92
4.3.90.0030.0097.90
4.3.80.0020.0147.88
4.3.70.0040.0117.90
4.3.60.0010.0137.90
4.3.50.0040.0077.90
4.3.40.0010.0167.86
4.3.30.0020.0107.23
4.3.20.0020.0107.21
4.3.10.0020.0097.20
4.3.00.0020.00913.54

preferences:
78.08 ms | 401 KiB | 5 Q