3v4l.org

run code in 300+ PHP versions simultaneously
<?php $example = false or true; echo '$example = false or true;' . "\n"; var_dump($example); $example = (false or true); echo '$example = (false or true);' . "\n"; var_dump($example);

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.1.70.0080.00617.32
8.1.60.0090.00917.51
8.1.50.0130.00517.47
8.1.40.0130.00617.45
8.1.30.0130.00517.57
8.1.20.0140.00717.60
8.1.10.0150.00417.48
8.1.00.0130.00617.36
8.0.200.0110.00416.98
8.0.190.0080.00616.84
8.0.180.0130.00316.88
8.0.170.0120.00216.96
8.0.160.0130.00216.95
8.0.150.0100.00516.82
8.0.140.0100.00516.82
8.0.130.0110.00516.90
8.0.120.0110.00516.82
8.0.110.0130.00216.94
8.0.100.0100.00516.83
8.0.90.0110.00416.82
8.0.80.0060.00916.84
8.0.70.0110.00416.91
8.0.60.0110.00416.84
8.0.50.0130.00216.80
8.0.30.0130.00316.83
8.0.20.0110.00116.97
8.0.10.0080.00717.09
8.0.00.0080.00317.06
7.4.300.0140.00316.46
7.4.290.0100.00516.43
7.4.280.0160.00216.57
7.4.270.0110.00616.52
7.4.260.0140.00416.56
7.4.250.0120.00516.47
7.4.240.0120.00516.37
7.4.230.0060.01116.50
7.4.220.0120.00216.53
7.4.210.0120.00316.61
7.4.200.0120.00316.55
7.4.190.0120.00216.63
7.4.180.0100.00616.52
7.4.160.0100.00516.54
7.4.150.0100.00516.42
7.4.140.0100.00416.32
7.4.130.0090.00616.42
7.4.120.0120.00216.37
7.4.110.0080.00716.35
7.4.100.0060.00816.37
7.4.90.0070.00516.32
7.4.80.0110.00316.22
7.4.70.0100.00416.27
7.4.60.0120.00316.26
7.4.50.0130.00216.28
7.4.40.0090.00316.24
7.4.30.0100.00416.28
7.4.20.0060.00716.23
7.4.10.0060.00716.37
7.4.00.0050.00716.39
7.3.330.0090.00516.25
7.3.320.0110.00316.15
7.3.310.0090.00516.03
7.3.300.0140.00016.04
7.3.290.0110.00416.25
7.3.280.0110.00516.13
7.3.270.0150.00316.09
7.3.260.0110.00716.26
7.3.250.0110.00716.20
7.3.240.0120.00316.11
7.3.230.0070.00716.09
7.3.220.0150.00016.08
7.3.210.0100.00616.13
7.3.200.0070.00716.20
7.3.190.0130.00216.18
7.3.180.0160.00015.95
7.3.170.0110.00416.22
7.3.160.0110.00515.93
7.3.150.0110.00416.12
7.3.140.0140.00016.24
7.3.130.0140.00316.06
7.3.120.0110.00316.19
7.3.110.0120.00315.87
7.3.100.0110.00415.83
7.3.90.0110.00516.44
7.3.80.0070.00716.13
7.3.70.0100.00516.05
7.3.60.0090.00416.36
7.3.50.0120.00216.11
7.3.40.0080.00416.24
7.3.30.0050.00816.43
7.3.20.0150.00018.03
7.3.10.0110.00417.95
7.3.00.0080.00818.08
7.2.340.0110.00316.15
7.2.330.0070.00716.21
7.2.320.0070.00716.25
7.2.310.0110.00316.10
7.2.300.0130.00316.13
7.2.290.0150.00016.32
7.2.280.0050.01016.20
7.2.270.0080.00816.17
7.2.260.0100.00516.34
7.2.250.0150.00016.32
7.2.240.0060.00916.26
7.2.230.0050.01016.11
7.2.220.0110.00416.21
7.2.210.0070.00716.02
7.2.200.0160.00016.32
7.2.190.0150.00016.48
7.2.180.0090.00516.22
7.2.170.0080.00516.21
7.2.160.0090.00516.46
7.2.150.0060.00918.31
7.2.140.0130.00018.13
7.2.130.0120.00218.33
7.2.120.0100.00418.48
7.2.110.0110.00418.42
7.2.100.0070.00718.34
7.2.90.0080.00818.43
7.2.80.0130.00218.34
7.2.70.0050.01018.40
7.2.60.0120.00318.13
7.2.50.0100.00518.30
7.2.40.0110.00418.48
7.2.30.0090.00618.30
7.2.20.0110.00418.29
7.2.10.0060.00818.20
7.2.00.0080.00818.36
7.1.330.0110.00217.12
7.1.320.0110.00417.14
7.1.310.0090.00717.18
7.1.300.0120.00217.36
7.1.290.0060.00717.38
7.1.280.0080.00517.41
7.1.270.0110.00317.25
7.1.260.0130.00017.09
7.1.250.0140.00017.28
7.1.240.0050.00917.11
7.1.230.0140.00017.05
7.1.220.0090.00517.13
7.1.210.0080.00817.11
7.1.200.0120.00217.26
7.1.190.0140.00017.32
7.1.180.0100.00317.38
7.1.170.0110.00317.18
7.1.160.0090.00517.24
7.1.150.0080.00517.11
7.1.140.0140.00017.11
7.1.130.0110.00317.04
7.1.120.0110.00317.27
7.1.110.0070.00717.24
7.1.100.0110.00317.13
7.1.90.0100.00317.27
7.1.80.0100.00517.12
7.1.70.0070.00816.89
7.1.60.0100.00417.34
7.1.50.0040.00917.07
7.1.40.0150.00017.03
7.1.30.0100.00517.36
7.1.20.0040.01017.05
7.1.10.0120.00217.09
7.1.00.0030.01017.20
7.0.330.0080.00416.87
7.0.320.0090.00416.80
7.0.310.0090.00316.98
7.0.300.0080.00517.00
7.0.290.0070.00616.71
7.0.280.0060.00616.96
7.0.270.0090.00416.97
7.0.260.0030.01016.75
7.0.250.0130.00017.17
7.0.240.0000.01216.95
7.0.230.0080.00416.99
7.0.220.0040.00916.97
7.0.210.0160.00017.12
7.0.200.0030.01017.00
7.0.190.0130.00017.05
7.0.180.0100.00316.88
7.0.170.0040.00817.08
7.0.160.0050.00917.05
7.0.150.0080.00516.86
7.0.140.0070.00716.92
7.0.130.0060.00617.14
7.0.120.0080.00616.86
7.0.110.0120.00216.70
7.0.100.0100.00316.81
7.0.90.0080.00516.77
7.0.80.0050.00816.64
7.0.70.0040.00916.69
7.0.60.0080.00516.99
7.0.50.0080.00416.87
7.0.40.0120.00016.85
7.0.30.0080.00416.91
7.0.20.0100.00316.82
7.0.10.0120.00016.71
7.0.00.0130.00016.97
5.6.400.0130.00015.77
5.6.390.0130.00015.73
5.6.380.0110.00215.61
5.6.370.0050.00915.77
5.6.360.0050.00815.66
5.6.350.0090.00215.65
5.6.340.0000.01215.61
5.6.330.0130.00015.75
5.6.320.0130.00015.61
5.6.310.0120.00415.64
5.6.300.0130.00015.52
5.6.290.0080.00415.64
5.6.280.0040.00915.71
5.6.270.0090.00515.88
5.6.260.0100.00315.84
5.6.250.0080.00415.84
5.6.240.0060.00615.80
5.6.230.0090.00315.85
5.6.220.0100.00315.77
5.6.210.0100.00315.66
5.6.200.0060.00615.78
5.6.190.0120.00015.74
5.6.180.0060.00615.77
5.6.170.0090.00415.94
5.6.160.0100.00215.96
5.6.150.0120.00015.98
5.6.140.0090.00315.91
5.6.130.0100.00315.62
5.6.120.0030.01015.92
5.6.110.0100.00315.60
5.6.100.0130.00015.59
5.6.90.0100.00315.79
5.6.80.0090.00215.83
5.6.70.0120.00015.93
5.6.60.0120.00015.83
5.6.50.0120.00015.74
5.6.40.0100.00315.91
5.6.30.0090.00315.84
5.6.20.0040.00915.79
5.6.10.0060.00615.81
5.6.00.0130.00015.71
5.5.380.0070.00615.99
5.5.370.0080.00415.95
5.5.360.0080.00415.36
5.5.350.0120.00015.56
5.5.340.0070.00715.63
5.5.330.0080.00415.80
5.5.320.0070.00715.77
5.5.310.0100.00315.71
5.5.300.0120.00015.53
5.5.290.0100.00315.51
5.5.280.0130.00015.43
5.5.270.0100.00415.71
5.5.260.0130.00015.50
5.5.250.0060.00615.91
5.5.240.0090.00315.73
5.5.230.0090.00315.52
5.5.220.0080.00515.75
5.5.210.0130.00016.03
5.5.200.0090.00315.67
5.5.190.0060.00915.42
5.5.180.0040.00815.43
5.5.170.0090.00415.68
5.5.160.0090.00515.50
5.5.150.0060.00615.35
5.5.140.0080.00415.43
5.5.130.0080.00415.63
5.5.120.0090.00215.25
5.5.110.0120.00015.28
5.5.100.0060.00615.71
5.5.90.0080.00415.75
5.5.80.0100.00315.68
5.5.70.0130.00015.81
5.5.60.0090.00315.51
5.5.50.0120.00015.68
5.5.40.0060.00615.86
5.5.30.0130.00015.91
5.5.20.0090.00315.85
5.5.10.0090.00315.92
5.5.00.0090.00215.53
5.4.450.0090.00012.43
5.4.440.0100.00012.41
5.4.430.0060.00312.63
5.4.420.0080.00212.62
5.4.410.0060.00312.56
5.4.400.0100.00012.41
5.4.390.0100.00012.56
5.4.380.0100.00012.71
5.4.370.0100.00012.71
5.4.360.0050.00512.70
5.4.350.0060.00412.54
5.4.340.0040.00712.39
5.4.330.0110.00012.50
5.4.320.0000.01112.47
5.4.310.0080.00312.62
5.4.300.0080.00312.77
5.4.290.0000.01112.45
5.4.280.0050.00512.47
5.4.270.0100.00012.56
5.4.260.0080.00312.52
5.4.250.0070.00312.38
5.4.240.0060.00412.46
5.4.230.0100.00012.21
5.4.220.0050.00512.30
5.4.210.0000.01012.30
5.4.200.0110.00012.30
5.4.190.0050.00512.34
5.4.180.0100.00012.51
5.4.170.0080.00312.34
5.4.160.0000.00912.37
5.4.150.0050.00512.37
5.4.140.0060.00412.63
5.4.130.0060.00312.43
5.4.120.0100.00012.35
5.4.110.0070.00312.41
5.4.100.0090.00012.38
5.4.90.0050.00412.44
5.4.80.0060.00312.38
5.4.70.0050.00512.69
5.4.60.0070.00312.54
5.4.50.0050.00512.57
5.4.40.0060.00312.47
5.4.30.0100.00012.54
5.4.20.0050.00512.48
5.4.10.0050.00512.52
5.4.00.0070.00212.20
5.3.290.0100.00013.26
5.3.280.0000.01012.85
5.3.270.0110.00013.13
5.3.260.0080.00313.18
5.3.250.0070.00313.13
5.3.240.0100.00013.01
5.3.230.0080.00413.14
5.3.220.0090.00312.95
5.3.210.0050.00512.61
5.3.200.0060.00312.96
5.3.190.0030.00612.74
5.3.180.0070.00313.07
5.3.170.0050.00512.80
5.3.160.0060.00312.80
5.3.150.0110.00012.86
5.3.140.0070.00313.00
5.3.130.0030.00712.80
5.3.120.0070.00213.07
5.3.110.0110.00013.12
5.3.100.0030.00712.73
5.3.90.0090.00013.05
5.3.80.0090.00012.55
5.3.70.0000.00912.66
5.3.60.0060.00312.95
5.3.50.0050.00512.59
5.3.40.0080.00312.70
5.3.30.0050.00513.05
5.3.20.0080.00312.65
5.3.10.0070.00312.50
5.3.00.0090.00012.77
5.2.170.0030.00512.04
5.2.160.0040.00411.85
5.2.150.0040.00411.83
5.2.140.0040.00411.77
5.2.130.0080.00011.92
5.2.120.0070.00012.07
5.2.110.0040.00411.86
5.2.100.0040.00412.08
5.2.90.0070.00211.91
5.2.80.0060.00211.66
5.2.70.0060.00311.96
5.2.60.0030.00611.59
5.2.50.0000.00911.94
5.2.40.0050.00411.82
5.2.30.0030.00611.66
5.2.20.0040.00411.56
5.2.10.0050.00311.68
5.2.00.0030.00511.73
5.1.60.0080.00010.84
5.1.50.0040.00410.83
5.1.40.0040.00411.21
5.1.30.0050.00211.30
5.1.20.0070.00310.91
5.1.10.0050.00211.08
5.1.00.0050.00210.91
5.0.50.0030.00310.14
5.0.40.0060.00010.03
5.0.30.0030.0039.93
5.0.20.0000.0069.95
5.0.10.0040.0029.53
5.0.00.0060.0009.55
4.4.90.0040.0008.91
4.4.80.0040.0008.91
4.4.70.0040.0008.91
4.4.60.0040.0008.91
4.4.50.0040.0008.91
4.4.40.0050.0008.91
4.4.30.0000.0048.91
4.4.20.0040.0008.91
4.4.10.0000.0048.91
4.4.00.0040.0008.91
4.3.110.0000.0048.91
4.3.100.0040.0008.91
4.3.90.0020.0028.91
4.3.80.0000.0048.91
4.3.70.0030.0008.91
4.3.60.0030.0008.91
4.3.50.0040.0008.91
4.3.40.0030.0008.91
4.3.30.0000.0038.91
4.3.20.0030.0008.91
4.3.10.0030.0008.91
4.3.00.0030.0008.91

preferences:
13.47 ms | 406 KiB | 5 Q