3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "Numeric strings will be converted into an integer\n"; var_dump(array( 1 => 1, '1' => '1', 's1' => 's1', )); echo "Bolean TRUE will be converted into the integer 1:\n"; echo "Bolean FALSE will be converted into the integer 0:\n"; var_dump(array( 0 => 0, 1 => 1, true => true, false => false, ));

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.0120.00618.27
8.3.50.0120.00522.11
8.3.40.0110.00418.47
8.3.30.0180.00418.45
8.3.20.0050.00318.63
8.3.10.0030.00520.95
8.3.00.0080.00019.67
8.2.180.0090.00916.32
8.2.170.0060.01522.96
8.2.160.0100.01020.52
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0050.00320.94
8.2.110.0060.00320.43
8.2.100.0080.00317.78
8.2.90.0040.00419.05
8.2.80.0000.00719.28
8.2.70.0000.01017.50
8.2.60.0030.00617.80
8.2.50.0060.00318.07
8.2.40.0070.00018.22
8.2.30.0040.00421.28
8.2.20.0030.00617.54
8.2.10.0070.00017.46
8.2.00.0030.00517.48
8.1.280.0110.00725.92
8.1.270.0070.00023.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0070.00322.45
8.1.230.0070.00420.88
8.1.220.0030.00518.77
8.1.210.0030.00518.77
8.1.200.0040.00417.10
8.1.190.0060.00317.50
8.1.180.0000.00818.10
8.1.170.0060.00318.53
8.1.160.0050.00218.78
8.1.150.0070.00018.52
8.1.140.0040.00417.38
8.1.130.0000.00817.68
8.1.120.0000.00717.25
8.1.110.0000.00817.33
8.1.100.0000.00817.30
8.1.90.0040.00317.34
8.1.80.0030.00317.36
8.1.70.0000.00717.23
8.1.60.0040.00417.52
8.1.50.0040.00417.35
8.1.40.0040.00417.34
8.1.30.0040.00417.39
8.1.20.0070.00317.60
8.1.10.0040.00417.42
8.1.00.0040.00417.43
8.0.300.0040.00419.86
8.0.290.0030.00617.18
8.0.280.0030.00318.29
8.0.270.0030.00317.12
8.0.260.0040.00416.71
8.0.250.0110.00016.70
8.0.240.0070.00016.87
8.0.230.0000.00716.86
8.0.220.0040.00416.79
8.0.210.0040.00416.65
8.0.200.0020.00516.71
8.0.190.0040.00416.84
8.0.180.0050.00216.74
8.0.170.0050.00316.66
8.0.160.0070.00416.67
8.0.150.0000.00716.78
8.0.140.0030.00316.69
8.0.130.0030.00313.23
8.0.120.0000.00816.75
8.0.110.0060.00316.73
8.0.100.0000.00716.75
8.0.90.0050.00216.66
8.0.80.0000.01716.75
8.0.70.0080.00016.57
8.0.60.0000.00816.84
8.0.50.0030.00516.75
8.0.30.0130.00916.98
8.0.20.0100.01117.40
8.0.10.0070.00016.72
8.0.00.0130.00516.75
7.4.330.0020.00216.84
7.4.320.0030.00316.29
7.4.300.0030.00316.37
7.4.290.0030.00316.37
7.4.280.0070.00016.48
7.4.270.0000.00616.48
7.4.260.0060.00013.09
7.4.250.0080.00016.48
7.4.240.0070.00016.33
7.4.230.0000.00716.55
7.4.220.0150.00416.26
7.4.210.0070.00816.47
7.4.200.0040.00416.50
7.4.190.0000.00716.54
7.4.160.0090.00916.28
7.4.150.0070.01117.40
7.4.140.0090.00917.86
7.4.130.0120.00616.50
7.4.120.0120.00616.51
7.4.110.0120.00716.35
7.4.100.0160.00716.57
7.4.90.0110.00816.41
7.4.80.0040.01319.39
7.4.70.0130.00316.20
7.4.60.0130.00316.40
7.4.50.0000.00816.16
7.4.40.0100.00322.77
7.4.30.0100.00716.40
7.4.00.0070.01014.76
7.3.330.0000.00512.88
7.3.320.0020.00213.04
7.3.310.0070.00016.27
7.3.300.0060.00016.00
7.3.290.0050.01016.09
7.3.280.0050.01016.13
7.3.270.0090.00917.40
7.3.260.0110.00918.24
7.3.250.0110.00716.29
7.3.240.0110.01116.29
7.3.230.0070.01016.39
7.3.210.0070.01016.46
7.3.200.0130.00919.39
7.3.190.0060.01316.16
7.3.180.0060.00916.05
7.3.170.0070.01016.32
7.3.160.0100.00716.41
7.3.120.0090.00314.50
7.3.110.0000.01614.89
7.3.100.0140.00014.67
7.3.90.0060.00914.36
7.3.80.0070.00714.56
7.3.70.0060.00614.57
7.3.60.0060.00614.74
7.3.50.0040.01214.66
7.3.40.0030.00614.28
7.3.30.0040.00714.75
7.3.20.0110.00316.49
7.3.10.0000.01116.46
7.3.00.0040.01116.65
7.2.330.0120.00916.66
7.2.320.0090.00916.39
7.2.310.0140.00316.29
7.2.300.0000.01716.58
7.2.290.0120.00316.54
7.2.240.0040.01214.98
7.2.230.0080.00414.72
7.2.220.0060.00614.50
7.2.210.0090.00414.49
7.2.200.0030.01014.60
7.2.190.0060.01214.75
7.2.180.0060.00914.49
7.2.170.0060.00914.58
7.2.160.0070.01014.79
7.2.150.0140.00016.97
7.2.140.0060.00916.82
7.2.130.0080.00416.75
7.2.120.0000.01516.52
7.2.110.0070.01016.91
7.2.100.0090.00916.88
7.2.90.0000.01316.57
7.2.80.0030.01416.86
7.2.70.0030.01316.76
7.2.60.0060.00916.78
7.2.50.0080.00316.83
7.2.40.0110.00716.84
7.2.30.0070.00716.91
7.2.20.0030.01316.68
7.2.10.0110.00716.84
7.2.00.0060.01117.58
7.1.330.0110.00315.51
7.1.320.0100.00315.71
7.1.310.0070.00715.52
7.1.300.0100.00615.57
7.1.290.0040.01115.67
7.1.280.0070.01015.44
7.1.270.0000.00915.32
7.1.260.0070.00715.65
7.1.250.0100.00315.82
7.1.200.0080.00315.77
7.1.70.0000.00816.84
7.1.60.0030.00717.20
7.1.50.0270.01034.78
7.1.00.0030.03322.43
7.0.200.0060.00316.55
7.0.140.0000.07022.07
7.0.110.0100.07320.07
7.0.100.0170.06319.94
7.0.90.0000.04319.96
7.0.80.0130.04020.05
7.0.70.0030.08319.82
7.0.60.0000.08019.94
7.0.50.0170.06719.91
7.0.40.0130.04019.78
7.0.30.0070.07719.79
7.0.20.0170.06719.64
7.0.10.0070.08019.73
7.0.00.0000.08319.73
5.6.280.0030.07020.77
5.6.260.0130.04020.68
5.6.250.0200.06320.64
5.6.240.0030.04020.58
5.6.230.0030.08720.54
5.6.220.0200.06020.67
5.6.210.0000.08320.58
5.6.200.0070.07720.65
5.6.190.0030.08720.65
5.6.180.0130.06720.62
5.6.170.0070.06020.55
5.6.160.0070.07320.61
5.6.150.0070.07720.56
5.6.140.0070.07720.66
5.6.130.0030.06320.61
5.6.120.0130.08720.69
5.6.110.0100.06720.63
5.6.100.0100.07020.62
5.6.90.0070.07320.67
5.6.80.0030.04719.99
5.6.70.0070.08320.02
5.6.60.0130.07320.22
5.6.50.0030.04720.05
5.6.40.0170.05319.99
5.6.30.0200.06719.91
5.6.20.0000.05319.99
5.6.10.0100.07320.06
5.6.00.0130.07319.99
5.5.380.0130.07720.46
5.5.370.0130.06720.51
5.5.360.0100.08720.45
5.5.350.0070.08320.44
5.5.340.0170.07320.90
5.5.330.0100.08721.01
5.5.320.0130.03720.80
5.5.310.0130.07720.77
5.5.300.0100.06720.69
5.5.290.0070.07020.73
5.5.280.0070.07720.96
5.5.270.0130.08020.87
5.5.260.0100.08320.97
5.5.250.0100.07320.58
5.5.240.0200.05320.39
5.5.230.0100.07020.18
5.5.220.0070.04720.20
5.5.210.0130.05320.34
5.5.200.0070.06720.18
5.5.190.0100.07720.29
5.5.180.0100.04020.33
5.5.160.0100.06720.36
5.5.150.0170.07320.29
5.5.140.0130.06720.29
5.5.130.0130.06320.29
5.5.120.0170.06020.21
5.5.110.0070.07320.14
5.5.100.0070.08020.00
5.5.90.0070.08320.21
5.5.80.0100.07720.02
5.5.70.0070.07019.98
5.5.60.0100.04020.00
5.5.50.0070.06020.22
5.5.40.0030.04020.25
5.5.30.0000.04320.02
5.5.20.0030.04020.00
5.5.10.0000.04720.10
5.5.00.0070.03320.22
5.4.450.0100.07719.28
5.4.440.0170.06719.31
5.4.430.0170.03719.35
5.4.420.0100.07019.48
5.4.410.0070.08019.31
5.4.400.0200.06019.00
5.4.390.0000.05018.95
5.4.380.0170.06019.00
5.4.370.0030.08319.27
5.4.360.0000.08018.95
5.4.350.0130.07019.18
5.4.340.0030.08019.13
5.4.320.0130.06718.95
5.4.310.0030.08319.08
5.4.300.0100.05019.07
5.4.290.0030.08019.00
5.4.280.0070.04719.16
5.4.270.0130.07319.17
5.4.260.0070.07719.00
5.4.250.0070.08018.96
5.4.240.0070.08018.94
5.4.230.0170.06719.19
5.4.220.0070.04018.94
5.4.210.0070.05719.17
5.4.200.0070.07319.09
5.4.190.0000.04019.14
5.4.180.0070.03318.97
5.4.170.0000.04019.02
5.4.160.0100.03319.16
5.4.150.0000.04319.09
5.4.140.0030.03716.37
5.4.130.0130.04016.27
5.4.120.0030.03316.26
5.4.110.0100.02716.27
5.4.100.0100.03016.48
5.4.90.0100.03016.40
5.4.80.0030.05016.39
5.4.70.0030.03316.46
5.4.60.0030.03316.11
5.4.50.0030.03316.50
5.4.40.0030.03716.39
5.4.30.0000.04016.25
5.4.20.0000.03716.16
5.4.10.0100.03016.10
5.4.00.0000.04015.90
5.3.290.0130.06714.59
5.3.280.0070.07714.59
5.3.270.0030.03314.62
5.3.260.0030.03714.61
5.3.250.0030.04014.66
5.3.240.0030.04014.43
5.3.230.0030.03714.48
5.3.220.0030.03714.56
5.3.210.0000.03714.55
5.3.200.0030.04014.66
5.3.190.0000.03714.41
5.3.180.0070.03314.57
5.3.170.0030.03714.45
5.3.160.0000.04014.63
5.3.150.0030.04014.50
5.3.140.0100.03314.61
5.3.130.0000.04014.37
5.3.120.0070.03314.61
5.3.110.0030.03714.41
5.3.100.0000.04713.92
5.3.90.0000.04013.94
5.3.80.0100.03013.87
5.3.70.0030.04013.90
5.3.60.0070.03314.09
5.3.50.0070.03713.80
5.3.40.0030.06313.95
5.3.30.0000.03713.84
5.3.20.0030.05013.54
5.3.10.0030.03013.71
5.3.00.0000.05713.51
5.2.170.0000.03311.82
5.2.160.0070.02711.82
5.2.150.0070.03711.82
5.2.140.0000.03311.82
5.2.130.0070.02311.82
5.2.120.0000.03011.82
5.2.110.0030.02711.82
5.2.100.0070.02311.82
5.2.90.0000.03011.82
5.2.80.0070.04311.82
5.2.70.0070.02711.82
5.2.60.0000.03711.82
5.2.50.0000.03011.82
5.2.40.0030.03011.82
5.2.30.0000.03311.82
5.2.20.0000.03011.82
5.2.10.0070.03311.82
5.2.00.0000.04011.82
5.1.60.0030.03311.82
5.1.50.0000.02711.82
5.1.40.0000.03011.82
5.1.30.0030.03711.82
5.1.20.0070.05011.82
5.1.10.0030.05311.82
5.1.00.0030.04311.82
5.0.50.0070.04011.82
5.0.40.0030.04011.82
5.0.30.0030.06711.82
5.0.20.0000.04311.82
5.0.10.0030.03711.82
5.0.00.0000.06711.82
4.4.90.0030.02011.82
4.4.80.0030.01311.82
4.4.70.0000.01711.82
4.4.60.0000.01711.82
4.4.50.0000.01311.82
4.4.40.0030.04011.82
4.4.30.0030.03311.82
4.4.20.0030.03311.82
4.4.10.0030.02311.82
4.4.00.0030.04011.82
4.3.110.0030.03311.82
4.3.100.0000.03011.82
4.3.90.0000.03711.82
4.3.80.0070.05011.82
4.3.70.0000.03711.82
4.3.60.0100.02711.82
4.3.50.0030.03011.82
4.3.40.0000.05711.82
4.3.30.0100.02711.82
4.3.20.0070.03311.82
4.3.10.0030.03011.82
4.3.00.0000.03311.82

preferences:
41.48 ms | 401 KiB | 5 Q