3v4l.org

run code in 300+ PHP versions simultaneously
<?php if ( true && true ){ echo "true && true\n"; } if ( true && false ){ echo "true && false\n"; } if ( false && false ){ echo "false && false\n"; } if ( true and true ){ echo "true and true\n"; } if ( true and !false ){ echo "true and !false\n"; } if ( !false and true ){ echo "!false and true\n"; } if ( false and false ){ echo "false and false\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.0040.01418.43
8.3.50.0070.01016.30
8.3.40.0070.00718.64
8.3.30.0040.01118.70
8.3.20.0040.00421.77
8.3.10.0000.00821.73
8.3.00.0070.00018.03
8.2.180.0070.00718.03
8.2.170.0070.00722.96
8.2.160.0070.00720.96
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00022.24
8.2.120.0040.00426.35
8.2.110.0090.00019.27
8.2.100.0080.00418.03
8.2.90.0050.00319.23
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0080.00317.55
8.2.50.0030.00518.10
8.2.40.0020.00520.29
8.2.30.0040.00419.05
8.2.20.0000.00817.79
8.2.10.0050.00217.86
8.2.00.0000.00717.81
8.1.280.0040.02225.92
8.1.270.0070.00023.79
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0060.00323.97
8.1.230.0110.00017.42
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0100.00017.22
8.1.190.0000.00817.10
8.1.180.0000.00818.10
8.1.170.0090.00020.20
8.1.160.0070.00018.74
8.1.150.0080.00020.08
8.1.140.0090.00019.45
8.1.130.0030.00318.82
8.1.120.0040.00417.32
8.1.110.0040.00417.29
8.1.100.0000.01017.17
8.1.90.0000.01017.27
8.1.80.0000.00817.37
8.1.70.0070.00017.26
8.1.60.0110.00017.38
8.1.50.0000.00717.39
8.1.40.0030.00617.30
8.1.30.0000.00717.49
8.1.20.0000.00817.50
8.1.10.0050.00217.43
8.1.00.0020.00517.38
8.0.300.0040.00418.77
8.0.290.0070.00016.63
8.0.280.0030.00318.35
8.0.270.0030.00317.26
8.0.260.0030.00316.86
8.0.250.0030.00316.83
8.0.240.0040.00416.91
8.0.230.0030.00316.80
8.0.220.0030.00316.73
8.0.210.0040.00416.83
8.0.200.0030.00316.85
8.0.190.0050.00316.92
8.0.180.0040.00416.90
8.0.170.0000.00816.86
8.0.160.0000.00716.79
8.0.150.0040.00416.77
8.0.140.0000.00716.68
8.0.130.0030.00613.33
8.0.120.0040.00416.73
8.0.110.0030.00416.85
8.0.100.0080.00016.64
8.0.90.0040.00416.88
8.0.80.0040.01116.80
8.0.70.0040.00416.84
8.0.60.0030.00616.77
8.0.50.0040.00416.86
8.0.30.0090.01017.08
8.0.20.0110.00817.40
8.0.10.0040.00416.89
8.0.00.0140.00616.90
7.4.330.0000.00515.55
7.4.320.0030.00316.33
7.4.300.0000.00616.50
7.4.290.0060.00316.44
7.4.280.0050.00316.38
7.4.270.0030.00316.46
7.4.260.0000.00716.46
7.4.250.0030.00316.41
7.4.240.0000.00716.43
7.4.230.0030.00516.52
7.4.220.0030.01316.28
7.4.210.0110.00816.42
7.4.200.0040.00416.18
7.4.160.0080.00816.38
7.4.150.0070.01017.40
7.4.140.0130.00717.86
7.4.130.0120.01216.41
7.4.120.0100.00716.49
7.4.110.0090.00916.55
7.4.100.0150.00616.32
7.4.90.0110.00516.36
7.4.80.0140.00419.39
7.4.70.0120.00816.32
7.4.60.0000.01516.38
7.4.50.0100.00616.46
7.4.40.0090.00616.50
7.4.30.0110.00916.30
7.4.00.0060.01014.92
7.3.330.0030.00313.07
7.3.320.0000.00513.13
7.3.310.0030.00616.28
7.3.300.0030.00316.05
7.3.290.0050.00916.16
7.3.280.0090.00616.17
7.3.270.0130.01017.40
7.3.260.0080.00916.27
7.3.250.0060.01216.31
7.3.240.0070.01016.37
7.3.230.0100.00616.14
7.3.210.0110.00716.36
7.3.200.0060.01516.29
7.3.190.0090.00616.30
7.3.180.0130.00316.18
7.3.170.0090.01216.23
7.3.160.0120.00416.18
7.3.120.0130.00714.71
7.3.110.0000.01214.76
7.3.100.0060.00914.45
7.3.90.0060.00314.73
7.3.80.0000.01514.51
7.3.70.0040.00414.70
7.3.60.0000.01414.78
7.3.50.0070.00714.66
7.3.40.0050.00514.41
7.3.30.0070.00314.56
7.3.20.0100.00316.20
7.3.10.0060.00716.48
7.3.00.0080.00816.54
7.2.330.0130.00416.29
7.2.320.0130.00316.57
7.2.310.0140.00316.28
7.2.300.0100.01316.65
7.2.290.0070.01116.59
7.2.250.0070.01414.61
7.2.240.0100.00714.99
7.2.230.0100.00714.90
7.2.220.0040.00415.09
7.2.210.0100.00314.99
7.2.200.0000.01314.71
7.2.190.0090.00614.91
7.2.180.0050.00514.62
7.2.170.0000.01314.78
7.2.130.0030.01016.60
7.2.120.0070.00616.77
7.2.110.0060.00716.67
7.2.100.0040.00816.68
7.2.90.0040.01116.84
7.2.80.0010.01316.66
7.2.70.0020.00916.80
7.2.60.0060.00516.72
7.2.50.0080.00616.91
7.2.40.0050.00816.80
7.2.30.0020.01316.78
7.2.20.0050.01016.75
7.2.10.0040.00916.65
7.2.00.0050.01016.78
7.1.330.0130.00315.73
7.1.320.0080.00415.50
7.1.310.0000.01115.52
7.1.300.0030.00715.51
7.1.290.0000.01215.45
7.1.280.0000.00915.38
7.1.270.0030.00615.55
7.1.260.0090.00315.63
7.1.250.0050.00815.56
7.1.200.0100.00315.66
7.1.70.0040.00817.08
7.1.60.0670.00333.32
7.1.50.0630.00732.89
7.1.40.0570.01032.34
7.1.30.0630.01032.48
7.1.20.0670.01332.39
7.1.10.0530.01014.62
7.1.00.0670.01314.82
7.0.200.0470.00714.74
7.0.190.0530.01014.82
7.0.180.0470.00714.34
7.0.170.0530.01014.25
7.0.160.0500.01014.36
7.0.150.0500.00714.40
7.0.140.0500.00714.52
7.0.130.0570.00714.64
7.0.120.0600.00714.76
7.0.110.0600.01314.29
7.0.100.0470.01714.44
7.0.90.0500.01314.09
7.0.80.0530.00714.30
7.0.70.0530.00714.23
7.0.60.0670.01314.27
7.0.50.0200.00714.31
7.0.40.0870.01014.50
7.0.30.0100.01014.44
7.0.20.0500.01014.38
7.0.10.0100.01014.39
7.0.00.0870.00714.61

preferences:
55.16 ms | 400 KiB | 5 Q