3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump((0 == "thing")); var_dump((int) 'string'); var_dump((int) 'string1'); var_dump((int) '1string'); var_dump((int) '012'); var_dump(012);

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.130.0040.00418.25
8.3.120.0000.00820.55
8.3.110.0080.00016.52
8.3.100.0030.00518.29
8.3.90.0000.00716.50
8.3.80.0060.00317.97
8.3.70.0230.00316.50
8.3.60.0060.00918.43
8.3.50.0140.00621.93
8.3.40.0070.00718.58
8.3.30.0090.00918.82
8.3.20.0070.00020.16
8.3.10.0070.00021.73
8.3.00.0080.00017.90
8.2.250.0040.00418.90
8.2.240.0110.00716.70
8.2.230.0060.00320.94
8.2.220.0060.00324.06
8.2.210.0110.00426.77
8.2.200.0080.00416.25
8.2.190.0140.00716.75
8.2.180.0120.00318.08
8.2.170.0130.00722.96
8.2.160.0090.00620.45
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0080.00020.75
8.2.110.0030.00622.10
8.2.100.0040.00819.51
8.2.90.0060.00318.92
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0040.00417.91
8.2.50.0040.00418.07
8.2.40.0080.00019.72
8.2.30.0040.00417.83
8.2.20.0040.00417.49
8.2.10.0070.00017.85
8.2.00.0000.00717.67
8.1.300.0060.00918.00
8.1.290.0080.00418.88
8.1.280.0060.01225.92
8.1.270.0090.00023.60
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00722.01
8.1.230.0100.00019.00
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0080.00017.23
8.1.190.0000.00717.10
8.1.180.0070.00018.10
8.1.170.0040.00418.45
8.1.160.0020.00521.88
8.1.150.0050.00218.80
8.1.140.0050.00217.38
8.1.130.0070.00017.80
8.1.120.0040.00417.36
8.1.110.0040.00417.36
8.1.100.0070.00017.23
8.1.90.0000.00817.23
8.1.80.0050.00317.31
8.1.70.0000.00817.34
8.1.60.0030.00617.46
8.1.50.0030.00617.40
8.1.40.0030.00617.31
8.1.30.0090.00017.54
8.1.20.0080.00017.50
8.1.10.0000.00717.25
8.1.00.0000.00717.24
8.0.300.0000.00718.77
8.0.290.0000.00717.05
8.0.280.0040.00418.25
8.0.270.0000.00717.00
8.0.260.0030.00317.11
8.0.250.0000.00716.80
8.0.240.0000.00716.90
8.0.230.0050.00316.92
8.0.220.0030.00316.69
8.0.210.0070.00016.88
8.0.200.0080.00016.88
8.0.190.0000.00716.84
8.0.180.0040.00416.75
8.0.170.0040.00416.81
8.0.160.0000.00716.72
8.0.150.0080.00016.63
8.0.140.0030.00416.80
8.0.130.0050.00313.22
8.0.120.0000.00716.79
8.0.110.0080.00016.88
8.0.100.0050.00216.93
8.0.90.0050.00216.70
8.0.80.0070.01316.78
8.0.70.0000.00816.77
8.0.60.0000.00716.89
8.0.50.0070.00016.82
8.0.30.0130.00716.86
8.0.20.0090.01317.40
8.0.10.0000.00716.80
8.0.00.0100.01016.49
7.4.330.0000.00615.15
7.4.320.0030.00316.36
7.4.300.0030.00316.30
7.4.290.0000.00616.31
7.4.280.0050.00316.35
7.4.270.0040.00416.41
7.4.260.0030.00316.42
7.4.250.0040.00416.34
7.4.240.0030.00316.30
7.4.230.0030.00316.20
7.4.220.0130.01116.51
7.4.210.0110.00416.33
7.4.200.0000.00716.54
7.4.160.0090.00916.39
7.4.150.0060.01317.40
7.4.140.0090.01017.86
7.4.130.0140.00316.35
7.4.120.0050.01316.38
7.4.110.0090.01216.21
7.4.100.0050.01416.19
7.4.90.0060.01216.45
7.4.80.0060.01119.39
7.4.70.0070.01616.54
7.4.60.0060.00916.27
7.4.50.0030.00616.11
7.4.40.0110.00516.20
7.4.30.0030.01416.34
7.4.00.0080.01014.76
7.3.330.0060.00013.08
7.3.320.0020.00213.04
7.3.310.0000.00716.25
7.3.300.0000.00616.22
7.3.290.0050.01016.16
7.3.280.0070.01016.26
7.3.270.0150.00617.40
7.3.260.0130.00416.32
7.3.250.0120.00816.30
7.3.240.0140.00416.41
7.3.230.0090.00616.39
7.3.210.0100.00716.12
7.3.200.0090.00919.39
7.3.190.0100.00716.43
7.3.180.0060.00916.20
7.3.170.0000.01616.27
7.3.160.0130.00316.41
7.3.120.0100.00714.68
7.3.110.0120.00614.69
7.3.100.0060.00614.69
7.3.90.0060.00614.44
7.3.80.0030.01014.82
7.3.70.0030.01014.57
7.3.60.0120.00314.69
7.3.50.0040.00714.82
7.3.40.0090.00314.76
7.3.30.0100.00014.67
7.3.20.0000.01416.48
7.3.10.0060.00616.57
7.3.00.0140.00316.45
7.2.330.0110.00816.65
7.2.320.0070.01016.57
7.2.310.0070.01116.42
7.2.300.0040.01116.60
7.2.290.0100.01016.28
7.2.250.0000.01914.88
7.2.240.0000.02015.10
7.2.230.0100.00014.96
7.2.220.0030.01015.09
7.2.210.0090.00614.71
7.2.200.0130.00314.54
7.2.190.0030.00715.05
7.2.180.0070.00715.09
7.2.170.0070.00315.08
7.1.330.0100.00315.47
7.1.320.0080.00815.82
7.1.310.0040.00715.73
7.1.300.0060.00315.80
7.1.290.0070.00315.83
7.1.280.0070.01015.57
7.1.270.0080.00415.72
7.1.260.0000.01215.89
7.1.200.0000.01415.28
7.1.70.0040.00417.25
7.1.60.0030.02119.57
7.1.50.0030.01716.71
7.1.00.0030.07722.42
7.0.200.0000.00816.85
7.0.140.0000.03322.07
7.0.60.0030.08320.02
7.0.50.0070.04717.81
7.0.40.0100.04320.23
7.0.30.0370.06320.09
7.0.20.0200.05020.16
7.0.10.0070.05020.20
7.0.00.0030.07020.32
5.6.280.0000.07721.11
5.6.210.0100.07020.62
5.6.200.0130.08018.18
5.6.190.0100.04020.48
5.6.180.0400.04020.48
5.6.170.0270.07320.52
5.6.160.0030.05720.71
5.6.150.0070.05318.04
5.6.140.0070.07018.09
5.6.130.0070.08318.21
5.6.120.0100.08021.04
5.6.110.0070.06720.99
5.6.100.0000.04320.99
5.6.90.0130.07720.97
5.6.80.0100.03720.48
5.5.350.0200.08320.45
5.5.340.0000.07017.89
5.5.330.0000.09020.43
5.5.320.0470.05020.27
5.5.310.0270.06720.21
5.5.300.0100.07317.97
5.5.290.0030.09017.98
5.5.280.0130.07720.79
5.5.270.0100.08020.88
5.5.260.0070.06720.78
5.5.250.0070.06720.68
5.5.240.0100.03020.03
5.4.450.0570.06719.63
5.4.440.0700.05019.60
5.4.430.0100.05319.45
5.4.420.0130.05019.31
5.4.410.0170.04718.80
5.4.400.0070.06018.69
5.4.390.0070.05318.68
5.4.380.0170.06018.63
5.4.370.0270.05318.75
5.4.360.0370.04318.68
5.4.350.0470.06318.75
5.4.340.0400.04318.68
5.4.320.0330.06018.46
5.4.310.0330.05018.46
5.4.300.0300.05718.68
5.4.290.0430.06718.68
5.4.280.0300.06718.45
5.4.270.0300.06718.60
5.4.260.0400.06018.60
5.4.250.0530.04318.71
5.4.240.0470.04718.69
5.4.230.0470.06318.45
5.4.220.0500.05718.48
5.4.210.0230.05718.67
5.4.200.0270.05016.65
5.4.190.0300.05718.68
5.4.180.0470.03318.62
5.4.170.0370.04718.72
5.4.160.0530.06018.60
5.4.150.0300.05718.48
5.4.140.0330.05016.19
5.4.130.0500.04316.16
5.4.120.0370.05316.19
5.4.110.0200.05316.15
5.4.100.0230.05316.26
5.4.90.0330.04316.32
5.4.80.0300.05316.11
5.4.70.0430.04716.14
5.4.60.0230.05016.19
5.4.50.0270.05016.13
5.4.40.0270.05316.13
5.4.30.0300.05016.05
5.4.20.0300.04716.13
5.4.10.0330.04316.20
5.4.00.0230.06015.58
5.3.290.0400.05314.74
5.3.280.0500.04314.57
5.3.270.0300.05714.59
5.3.260.0370.05014.56
5.3.250.0370.05014.54
5.3.240.0330.05314.49
5.3.230.0400.05014.62
5.3.220.0330.05014.49
5.3.210.0300.06014.61
5.3.200.0330.05014.55
5.3.190.0370.04714.47
5.3.180.0400.05014.63
5.3.170.0270.05014.56
5.3.160.0270.05314.55
5.3.150.0170.06014.55
5.3.140.0330.05314.55
5.3.130.0330.05714.48
5.3.120.0270.05714.49
5.3.110.0230.05714.44
5.3.100.0370.05014.06
5.3.90.0230.05314.11
5.3.80.0200.06313.96
5.3.70.0330.06313.98
5.3.60.0300.05713.98
5.3.50.0300.05013.93
5.3.40.0270.05013.95
5.3.30.0400.04013.86
5.3.20.0470.04713.62
5.3.10.0300.04313.68
5.3.00.0300.04313.59
5.2.170.0230.03711.13
5.2.160.0330.03011.17
5.2.150.0270.04711.07
5.2.140.0230.04011.09
5.2.130.0170.04311.06
5.2.120.0130.04711.15
5.2.110.0270.03711.04
5.2.100.0270.04711.02
5.2.90.0300.03011.07
5.2.80.0230.03711.01
5.2.70.0200.04711.07
5.2.60.0400.04011.10
5.2.50.0200.04711.02
5.2.40.0170.04311.02
5.2.30.0170.04310.93
5.2.20.0170.04010.98
5.2.10.0330.03010.81
5.2.00.0270.04310.75
5.1.60.0230.03010.01
5.1.50.0230.0279.95
5.1.40.0200.03310.12
5.1.30.0200.04010.38
5.1.20.0300.03710.36
5.1.10.0200.03710.16
5.1.00.0200.03310.11
5.0.50.0070.0308.52
5.0.40.0030.0338.47
5.0.30.0130.0408.20
5.0.20.0170.0238.32
5.0.10.0070.0338.18
5.0.00.0070.0478.13
4.4.90.0070.0235.91
4.4.80.0070.0335.82
4.4.70.0100.0205.86
4.4.60.0070.0235.91
4.4.50.0070.0235.91
4.4.40.0070.0375.88
4.4.30.0100.0275.89
4.4.20.0130.0205.95
4.4.10.0030.0275.96
4.4.00.0130.0475.84
4.3.110.0130.0275.76
4.3.100.0170.0275.79
4.3.90.0100.0175.79
4.3.80.0070.0375.86
4.3.70.0100.0205.85
4.3.60.0070.0235.76
4.3.50.0100.0235.79
4.3.40.0100.0335.75
4.3.30.0070.0205.67
4.3.20.0070.0205.67
4.3.10.0070.0205.67
4.3.00.0170.0176.74

preferences:
27.89 ms | 403 KiB | 5 Q