3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x =array( array(), "", 0, false, null ); foreach ($x as $val) { if (!$val) { print "The condition is unexpectedly true, though it's not a boolean and was magically converted\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.0100.01018.43
8.3.50.0030.01218.16
8.3.40.0100.00618.54
8.3.30.0070.00718.67
8.3.20.0000.00720.36
8.3.10.0120.00320.25
8.3.00.0000.00818.89
8.2.180.0060.01218.38
8.2.170.0080.00822.96
8.2.160.0070.00720.36
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00319.36
8.2.120.0050.00226.35
8.2.110.0060.00320.39
8.2.100.0000.01217.91
8.2.90.0080.00017.97
8.2.80.0000.00817.97
8.2.70.0080.00017.50
8.2.60.0000.00817.63
8.2.50.0070.00319.22
8.2.40.0050.00319.34
8.2.30.0080.00019.52
8.2.20.0030.00617.67
8.2.10.0000.00817.96
8.2.00.0030.00618.07
8.1.280.0100.00325.92
8.1.270.0000.00723.88
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0130.00323.82
8.1.230.0140.00022.69
8.1.220.0080.00017.74
8.1.210.0030.00518.77
8.1.200.0080.00017.35
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0000.00920.25
8.1.160.0050.00222.67
8.1.150.0000.00818.95
8.1.140.0000.00819.57
8.1.130.0040.00417.65
8.1.120.0000.00717.48
8.1.110.0000.00717.45
8.1.100.0000.00717.48
8.1.90.0040.00417.35
8.1.80.0040.00417.45
8.1.70.0030.00317.43
8.1.60.0040.00417.64
8.1.50.0000.00817.52
8.1.40.0030.00717.56
8.1.30.0000.00817.61
8.1.20.0060.00617.50
8.1.10.0000.00717.56
8.1.00.0000.00717.44
8.0.300.0070.00019.67
8.0.290.0040.00416.75
8.0.280.0000.00718.43
8.0.270.0000.00717.32
8.0.260.0030.00317.29
8.0.250.0070.00016.93
8.0.240.0040.00416.85
8.0.230.0000.00716.91
8.0.220.0040.00416.87
8.0.210.0000.00716.88
8.0.200.0030.00316.86
8.0.190.0110.00017.02
8.0.180.0060.00316.91
8.0.170.0000.00716.94
8.0.160.0030.00316.89
8.0.150.0000.00716.85
8.0.140.0020.00516.80
8.0.130.0030.00313.24
8.0.120.0000.00816.91
8.0.110.0000.00816.83
8.0.100.0000.00716.95
8.0.90.0030.00416.90
8.0.80.0130.00316.80
8.0.70.0000.00716.95
8.0.60.0040.00416.76
8.0.50.0000.00716.77
8.0.30.0050.01317.25
8.0.20.0080.01217.40
8.0.10.0040.00416.95
8.0.00.0090.01216.65
7.4.330.0000.00515.08
7.4.320.0060.00016.39
7.4.300.0060.00016.51
7.4.290.0080.00016.55
7.4.280.0000.00816.43
7.4.270.0030.00316.61
7.4.260.0030.00516.54
7.4.250.0080.00016.41
7.4.240.0070.00016.52
7.4.230.0030.00316.70
7.4.220.0130.00916.64
7.4.210.0080.01116.61
7.4.200.0030.00516.63
7.4.160.0070.01016.45
7.4.150.0150.00317.40
7.4.140.0110.00617.86
7.4.130.0060.01116.52
7.4.120.0050.01216.49
7.4.110.0080.00816.38
7.4.100.0150.00616.41
7.4.90.0120.00916.46
7.4.80.0130.00319.39
7.4.70.0090.00916.38
7.4.60.0000.01916.48
7.4.50.0130.00016.34
7.4.40.0100.01016.39
7.4.30.0130.00316.56
7.4.10.0070.01114.74
7.4.00.0090.00714.85
7.3.330.0000.00713.25
7.3.320.0030.00313.13
7.3.310.0030.00316.42
7.3.300.0030.00316.37
7.3.290.0030.00316.21
7.3.280.0100.01016.35
7.3.270.0100.00717.40
7.3.260.0140.00316.59
7.3.250.0120.00716.54
7.3.240.0140.00816.60
7.3.230.0100.00616.48
7.3.210.0100.00616.58
7.3.200.0130.00916.36
7.3.190.0090.00616.28
7.3.180.0130.00316.50
7.3.170.0120.00516.37
7.3.160.0090.00916.52
7.3.130.0060.01214.97
7.3.120.0030.01614.85
7.3.110.0000.02015.03
7.3.100.0090.00314.94
7.3.90.0080.00814.95
7.3.80.0030.00914.80
7.3.70.0070.00714.73
7.3.60.0000.00814.80
7.3.50.0000.01314.71
7.3.40.0070.00714.93
7.3.30.0130.00314.73
7.3.20.0040.00416.82
7.3.10.0080.00716.71
7.3.00.0080.00616.76
7.2.330.0110.01216.41
7.2.320.0100.00716.65
7.2.310.0090.01216.46
7.2.300.0090.00616.66
7.2.290.0050.01016.60
7.2.260.0080.00315.10
7.2.250.0070.01015.05
7.2.240.0110.00414.89
7.2.230.0040.01114.77
7.2.220.0060.00315.01
7.2.210.0080.00814.92
7.2.200.0060.00915.09
7.2.190.0090.00615.11
7.2.180.0040.00815.18
7.2.170.0030.00615.05
7.2.160.0100.00314.76
7.2.150.0100.00716.79
7.2.140.0090.00316.78
7.2.130.0070.00616.62
7.2.120.0070.00816.66
7.2.110.0030.00816.79
7.2.100.0050.00916.89
7.2.90.0030.01116.86
7.2.80.0060.00617.02
7.2.70.0040.00816.91
7.2.60.0040.00416.83
7.2.50.0060.00616.97
7.2.40.0020.00816.81
7.2.30.0060.00616.81
7.2.20.0050.00516.83
7.2.10.0050.00816.90
7.2.00.0100.00417.64
7.1.330.0060.00915.82
7.1.320.0040.01115.72
7.1.310.0040.01115.51
7.1.300.0050.00515.80
7.1.290.0060.00815.48
7.1.280.0030.00715.87
7.1.270.0100.00315.39
7.1.260.0040.00415.77
7.1.250.0050.00715.81
7.1.240.0070.00715.68
7.1.230.0090.00315.66
7.1.220.0100.00315.73
7.1.210.0000.01215.55
7.1.200.0070.00615.84
7.1.190.0060.00315.43
7.1.180.0030.00615.42
7.1.170.0070.00315.76
7.1.160.0060.00815.38
7.1.150.0100.00315.76
7.1.140.0060.00615.52
7.1.130.0030.01015.67
7.1.120.0070.00715.64
7.1.110.0030.00615.82
7.1.100.0080.00316.73
7.1.90.0040.00415.66
7.1.80.0080.00415.54
7.1.70.0050.00716.46
7.1.60.0070.01117.41
7.1.50.0030.00515.59
7.1.40.0030.01015.65
7.1.30.0040.00715.72
7.1.20.0030.00615.51
7.1.10.0030.00515.71
7.1.00.0000.04719.05
7.0.330.0060.00615.17
7.0.320.0070.01015.09
7.0.310.0040.00715.58
7.0.300.0100.00315.35
7.0.290.0070.00715.33
7.0.280.0080.00415.44
7.0.270.0080.00615.42
7.0.260.0060.00315.03
7.0.250.0000.00815.39
7.0.240.0060.00615.32
7.0.230.0030.00515.40
7.0.220.0000.00815.42
7.0.210.0030.01415.31
7.0.200.0050.00616.02
7.0.190.0000.00815.37
7.0.180.0040.00415.18
7.0.170.0060.00315.40
7.0.160.0070.00715.30
7.0.150.0100.00015.31
7.0.140.0060.00615.11
7.0.130.0000.01115.46
7.0.120.0030.00915.30
7.0.110.0030.00715.41
7.0.100.0030.00615.31
7.0.90.0080.00815.40
7.0.80.0070.00715.44
7.0.70.0070.00315.32
7.0.60.0070.03218.48
7.0.50.0100.03216.54
7.0.40.0100.03816.73
7.0.30.0100.03416.70
7.0.20.0150.04516.70
7.0.10.0020.03016.85
7.0.00.0070.03216.86
5.6.400.0070.00414.20
5.6.390.0090.00614.15
5.6.380.0090.00314.60
5.6.370.0030.01214.50
5.6.360.0040.00714.40
5.6.350.0060.00614.40
5.6.340.0070.00414.32
5.6.330.0090.00414.27
5.6.320.0080.00313.86
5.6.310.0080.00014.29
5.6.300.0000.00914.45
5.6.290.0070.01114.46
5.6.280.0040.03917.61
5.6.270.0070.00314.46
5.6.260.0060.00613.99
5.6.250.0000.00914.13
5.6.240.0030.01014.48
5.6.230.0000.01614.19
5.6.220.0030.01214.36
5.6.210.0070.04517.53
5.6.200.0100.04216.17
5.6.190.0070.03617.30
5.6.180.0100.02917.33
5.6.170.0170.04217.45
5.6.160.0050.02817.45
5.6.150.0070.04316.27
5.6.140.0040.03416.16
5.6.130.0060.04616.07
5.6.120.0030.02517.61
5.6.110.0100.04217.51
5.6.100.0130.03817.56
5.6.90.0070.02417.60
5.6.80.0070.04217.49
5.6.70.0040.00814.23
5.6.60.0030.01014.10
5.6.50.0140.00014.09
5.6.40.0040.01214.09
5.6.30.0040.00714.03
5.6.20.0030.00614.43
5.6.10.0040.01214.20
5.6.00.0000.01114.09
5.5.380.0060.00914.09
5.5.370.0040.00514.16
5.5.360.0120.00314.24
5.5.350.0160.04017.29
5.5.340.0050.04416.01
5.5.330.0050.02817.17
5.5.320.0170.03017.22
5.5.310.0170.04217.25
5.5.300.0070.03715.97
5.5.290.0020.03516.07
5.5.280.0060.04517.49
5.5.270.0010.02417.44
5.5.260.0070.02217.53
5.5.250.0100.04517.46
5.5.240.0140.04016.97
5.5.230.0000.01214.09
5.5.220.0110.00414.16
5.5.210.0110.00414.05
5.5.200.0120.00314.16
5.5.190.0030.00614.30
5.5.180.0080.00314.04
5.5.170.0120.00314.31
5.5.160.0030.01414.20
5.5.150.0020.01114.32
5.5.140.0000.01713.77
5.5.130.0100.00714.29
5.5.120.0070.00713.87
5.5.110.0070.01113.98
5.5.100.0060.00914.00
5.5.90.0070.00814.00
5.5.80.0000.01314.10
5.5.70.0030.00714.17
5.5.60.0030.01014.34
5.5.50.0000.01314.22
5.5.40.0030.00913.71
5.5.30.0110.00313.89
5.5.20.0080.00314.17
5.5.10.0090.00014.43
5.5.00.0030.00813.93

preferences:
66.97 ms | 400 KiB | 5 Q