3v4l.org

run code in 300+ PHP versions simultaneously
<?php $approved = 0; if ($approved == "gfsdgsfdgsdf") { echo "huh?"; }

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.0.30.0100.01016.86
8.0.20.0110.01016.93
8.0.10.0110.01016.97
8.0.00.0120.00916.88
7.4.160.0110.00916.57
7.4.150.0100.00916.49
7.4.140.0110.00916.41
7.4.130.0110.00916.42
7.4.120.0110.00916.41
7.4.110.0110.00916.41
7.4.100.0110.00916.42
7.4.90.0110.00916.40
7.4.80.0110.00916.42
7.4.70.0100.00916.38
7.4.60.0110.00916.37
7.4.50.0110.00916.35
7.4.40.0100.00916.34
7.4.30.0110.00916.38
7.4.20.0110.00916.36
7.4.10.0100.00916.38
7.4.00.0100.00916.41
7.3.270.0110.00916.19
7.3.260.0110.00816.20
7.3.250.0100.00916.22
7.3.240.0110.00916.23
7.3.230.0110.00916.22
7.3.220.0110.00916.19
7.3.210.0110.00916.18
7.3.200.0110.00816.25
7.3.190.0110.00916.22
7.3.180.0110.00916.21
7.3.170.0110.00816.21
7.3.160.0110.00916.20
7.3.150.0110.00816.22
7.3.140.0100.00916.23
7.3.130.0100.00916.22
7.3.120.0100.00916.22
7.3.110.0100.00916.19
7.3.100.0110.00916.19
7.3.90.0100.00916.24
7.3.80.0110.00916.19
7.3.70.0100.00916.22
7.3.60.0100.00916.21
7.3.50.0110.00916.20
7.3.40.0110.00816.20
7.3.30.0110.00816.20
7.3.20.0150.00916.28
7.3.10.0140.00916.25
7.3.00.0120.00916.27
7.2.340.0160.00916.33
7.2.330.0150.01016.36
7.2.320.0140.01016.40
7.2.310.0120.00916.38
7.2.300.0130.00916.38
7.2.290.0120.00916.38
7.2.280.0120.00916.38
7.2.270.0130.00916.37
7.2.260.0120.00916.37
7.2.250.0120.00916.38
7.2.240.0120.00916.38
7.2.230.0130.00916.38
7.2.220.0120.00916.38
7.2.210.0120.01016.37
7.2.200.0130.00916.38
7.2.190.0120.01016.35
7.2.180.0120.01016.35
7.2.170.0120.00916.38
7.2.160.0120.00916.38
7.2.150.0140.00916.48
7.2.140.0150.00916.48
7.2.130.0140.01016.51
7.2.120.0150.00916.49
7.2.110.0160.01016.49
7.2.100.0140.00916.50
7.2.90.0140.00916.48
7.2.80.0140.00916.48
7.2.70.0140.01016.47
7.2.60.0140.00916.47
7.2.50.0150.00916.46
7.2.40.0150.00916.52
7.2.30.0150.01016.52
7.2.20.0140.00916.50
7.2.10.0140.00916.48
7.2.00.0140.00916.48
7.1.330.0630.01115.30
7.1.320.0160.01015.30
7.1.310.0180.00915.43
7.1.300.0150.01615.46
7.1.290.0300.00315.36
7.1.280.0100.01015.43
7.1.270.0180.00815.48
7.1.260.0150.01515.39
7.1.250.0220.00915.31
7.1.240.0260.00615.30
7.1.230.0130.01015.41
7.1.220.0210.00715.37
7.1.210.0120.01215.30
7.1.200.0150.01215.26
7.1.190.0160.01315.32
7.1.180.0150.01615.29
7.1.170.0130.01315.35
7.1.160.0110.01115.25
7.1.150.0180.00515.37
7.1.140.0140.01015.28
7.1.130.0220.00315.25
7.1.120.0100.01315.29
7.1.110.0200.01115.31
7.1.100.0200.00715.30
7.1.90.0150.00915.30
7.1.80.0210.00915.31
7.1.70.0410.01015.19
7.1.60.0190.01315.34
7.1.50.0220.00615.27
7.1.40.0150.01115.45
7.1.30.0240.00015.25
7.1.20.0240.00015.39
7.1.10.0160.01015.30
7.1.00.0210.00415.33
7.0.330.0160.00715.09
7.0.320.0150.01515.04
7.0.310.0200.00315.10
7.0.300.0180.00615.04
7.0.290.0100.01015.05
7.0.280.0220.00015.04
7.0.270.0180.00315.04
7.0.260.0080.01415.18
7.0.250.0240.00015.32
7.0.240.0330.00715.32
7.0.230.0170.01015.23
7.0.220.0180.01215.21
7.0.210.0220.00615.21
7.0.200.0120.01415.35
7.0.190.0410.01415.14
7.0.180.0110.01115.22
7.0.170.0150.01115.41
7.0.160.0130.00815.14
7.0.150.0180.00715.07
7.0.140.0130.01715.12
7.0.130.0130.01315.13
7.0.120.0220.00615.21
7.0.110.0200.00815.16
7.0.100.0170.00715.28
7.0.90.0200.00415.04
7.0.80.0250.00014.89
7.0.70.0240.00915.01
7.0.60.0400.00415.03
7.0.50.0250.00015.00
7.0.40.0180.01215.14
7.0.30.0240.01215.09
7.0.20.0120.00915.05
7.0.10.0140.01415.13
7.0.00.0200.00615.09
5.6.400.0220.00715.83
5.6.390.0110.01215.89
5.6.380.0190.00815.73
5.6.370.0130.01515.89
5.6.360.0210.00415.72
5.6.350.0110.01115.70
5.6.340.0240.00315.83
5.6.330.0140.01115.79
5.6.320.0140.01215.84
5.6.310.0150.01215.79
5.6.300.0170.00715.59
5.6.290.0170.00715.75
5.6.280.0180.01515.65
5.6.270.0180.00715.77
5.6.260.0190.00815.85
5.6.250.0150.01115.66
5.6.240.0140.01415.86
5.6.230.0220.00415.86
5.6.220.0220.00315.87
5.6.210.0210.00215.86
5.6.200.0180.00916.06
5.6.190.0200.00316.10
5.6.180.0190.00815.96
5.6.170.0190.01015.89
5.6.160.0130.01415.89
5.6.150.0150.01215.86
5.6.140.0250.00615.81
5.6.130.0220.00615.85
5.6.120.0200.00715.82
5.6.110.0220.00315.83
5.6.100.0190.00715.67
5.6.90.0170.01315.84
5.6.80.0180.00615.77
5.6.70.0130.01315.80
5.6.60.0190.00815.95
5.6.50.0120.01215.78
5.6.40.0130.00915.80
5.6.30.0150.01215.93
5.6.20.0130.01015.86
5.6.10.0180.01115.82
5.6.00.0040.01815.77
5.5.380.0110.01115.75
5.5.370.0230.00315.88
5.5.360.0150.01515.59
5.5.350.0240.00315.82
5.5.340.0190.01015.59
5.5.330.0230.00315.80
5.5.320.0220.00315.53
5.5.310.0160.01215.60
5.5.300.0150.01115.76
5.5.290.0180.01215.82
5.5.280.0140.00915.58
5.5.270.0140.00815.60
5.5.260.0240.00415.63
5.5.250.0190.00715.74
5.5.240.0160.00915.86
5.5.230.0180.00515.66
5.5.220.0160.01115.62
5.5.210.0160.00815.76
5.5.200.0160.00615.79
5.5.190.0180.00415.63
5.5.180.0150.00915.60
5.5.170.0080.01515.64
5.5.160.0140.01215.64
5.5.150.0160.00915.64
5.5.140.0180.00915.41
5.5.130.0080.02015.39
5.5.120.0260.00315.49
5.5.110.0140.01415.39
5.5.100.0140.01415.79
5.5.90.0180.00915.74
5.5.80.0180.00915.72
5.5.70.0170.01215.57
5.5.60.0100.01015.61
5.5.50.0140.00715.62
5.5.40.0130.00915.84
5.5.30.0090.01215.67
5.5.20.0120.00815.79
5.5.10.0080.01215.58
5.5.00.0190.00815.66
5.4.450.0080.01112.54
5.4.440.0110.00812.58
5.4.430.0140.00312.52
5.4.420.0130.00712.58
5.4.410.0140.00912.38
5.4.400.0110.00612.47
5.4.390.0080.01512.50
5.4.380.0110.00912.52
5.4.370.0120.00512.62
5.4.360.0150.00412.46
5.4.350.0130.00312.50
5.4.340.0150.00812.62
5.4.330.0200.00312.48
5.4.320.0070.01112.57
5.4.310.0140.00712.53
5.4.300.0150.00812.58
5.4.290.0150.00612.57
5.4.280.0200.00512.58
5.4.270.0120.00812.48
5.4.260.0160.00612.51
5.4.250.0170.00412.48
5.4.240.0160.00312.46
5.4.230.0040.01312.32
5.4.220.0040.01312.28
5.4.210.0070.01012.27
5.4.200.0080.00812.23
5.4.190.0130.00312.32
5.4.180.0090.00912.29
5.4.170.0040.01312.32
5.4.160.0120.00412.38
5.4.150.0100.01012.35
5.4.140.0150.00312.51
5.4.130.0090.00912.41
5.4.120.0090.00912.50
5.4.110.0150.00712.46
5.4.100.0100.01012.46
5.4.90.0090.01312.50
5.4.80.0150.00912.58
5.4.70.0190.00012.66
5.4.60.0100.01012.52
5.4.50.0180.00612.40
5.4.40.0230.00012.44
5.4.30.0150.00312.50
5.4.20.0150.00712.50
5.4.10.0140.00412.43
5.4.00.0140.00712.38
5.3.290.0140.01113.09
5.3.280.0110.00812.90
5.3.270.0090.00912.92
5.3.260.0170.00312.93
5.3.250.0120.00613.06
5.3.240.0160.00412.68
5.3.230.0110.01112.82
5.3.220.0080.01412.71
5.3.210.0150.00412.84
5.3.200.0080.01212.90
5.3.190.0170.00712.96
5.3.180.0160.00612.98
5.3.170.0170.00712.88
5.3.160.0120.00712.94
5.3.150.0260.00512.89
5.3.140.0160.01012.84
5.3.130.0160.00612.85
5.3.120.0120.00612.88
5.3.110.0110.01112.95
5.3.100.0120.00912.76
5.3.90.0150.00612.81
5.3.80.0100.01012.64
5.3.70.0140.00712.69
5.3.60.0110.01112.82
5.3.50.0140.00712.79
5.3.40.0150.00812.68
5.3.30.0090.01512.83
5.3.20.0140.00412.83
5.3.10.0120.00612.47
5.3.00.0090.01312.48
5.2.170.0090.00511.96
5.2.160.0080.01212.01
5.2.150.0150.00412.10
5.2.140.0110.00711.84
5.2.130.0100.00711.82
5.2.120.0140.00611.88
5.2.110.0080.01112.02
5.2.100.0100.01111.85
5.2.90.0100.01011.89
5.2.80.0140.00311.83
5.2.70.0130.00511.86
5.2.60.0140.00311.79
5.2.50.0170.00312.02
5.2.40.0160.00311.83
5.2.30.0050.01011.69
5.2.20.0070.00711.68
5.2.10.0140.00011.65
5.2.00.0080.00811.60
5.1.60.0110.00711.22
5.1.50.0150.00310.99
5.1.40.0160.00011.03
5.1.30.0050.00911.28
5.1.20.0140.00411.15
5.1.10.0080.00811.30
5.1.00.0130.00310.99
5.0.50.0120.00210.99
5.0.40.0110.00010.99
5.0.30.0040.01110.99
5.0.20.0050.00910.99
5.0.10.0050.00510.99
5.0.00.0090.00210.99
4.4.90.0040.00410.99
4.4.80.0000.00810.99
4.4.70.0000.00810.99
4.4.60.0050.00210.99
4.4.50.0040.00410.99
4.4.40.0050.00510.99
4.4.30.0070.00210.99
4.4.20.0040.00410.99
4.4.10.0000.00910.99
4.4.00.0080.00010.99
4.3.110.0000.00910.99
4.3.100.0080.00010.99
4.3.90.0100.00010.99
4.3.80.0070.00310.99
4.3.70.0030.00710.99
4.3.60.0030.00610.99
4.3.50.0050.00310.99
4.3.40.0060.00210.99
4.3.30.0080.00010.99
4.3.20.0000.00810.99
4.3.10.0030.00310.99
4.3.00.0060.00010.99