3v4l.org

run code in 300+ PHP versions simultaneously
<?php class User{ public function getPassport() { return; } public function getDrivingLicence() { return; } } $user = new User; if (!$user->getPassport() && !$user->getDrivingLicence()) { echo 'done'; }

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.0050.00818.18
8.3.50.0130.00922.99
8.3.40.0130.00618.90
8.3.30.0080.00518.97
8.3.20.0080.00019.98
8.3.10.0000.00820.40
8.3.00.0080.00019.24
8.2.180.0070.00718.17
8.2.170.0100.00622.96
8.2.160.0100.01020.36
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.54
8.2.110.0030.00618.97
8.2.100.0040.00717.91
8.2.90.0030.00619.64
8.2.80.0000.00819.40
8.2.70.0030.00517.50
8.2.60.0030.00717.93
8.2.50.0030.00618.07
8.2.40.0080.00018.21
8.2.30.0040.00418.11
8.2.20.0040.00417.71
8.2.10.0070.00018.10
8.2.00.0000.00717.65
8.1.280.0070.01025.92
8.1.270.0050.00320.64
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0060.00322.61
8.1.230.0080.00421.02
8.1.220.0040.00417.76
8.1.210.0040.00418.95
8.1.200.0030.00617.35
8.1.190.0060.00317.53
8.1.180.0080.00018.10
8.1.170.0030.00518.71
8.1.160.0040.00418.88
8.1.150.0000.00818.87
8.1.140.0040.00417.49
8.1.130.0000.00717.76
8.1.120.0040.00417.39
8.1.110.0000.00817.43
8.1.100.0030.00317.43
8.1.90.0030.00517.34
8.1.80.0100.00017.45
8.1.70.0040.00417.44
8.1.60.0090.00017.59
8.1.50.0040.00417.39
8.1.40.0000.00717.50
8.1.30.0000.00817.57
8.1.20.0000.00917.56
8.1.10.0000.00917.60
8.1.00.0000.00717.46
8.0.300.0070.00019.89
8.0.290.0000.00716.75
8.0.280.0030.00318.35
8.0.270.0000.00717.20
8.0.260.0060.00017.36
8.0.250.0040.00416.92
8.0.240.0000.00616.84
8.0.230.0000.00717.00
8.0.220.0000.00716.86
8.0.210.0080.00016.89
8.0.200.0030.00316.95
8.0.190.0040.00316.84
8.0.180.0030.00516.88
8.0.170.0040.00416.84
8.0.160.0040.00416.86
8.0.150.0000.00816.84
8.0.140.0040.00316.90
8.0.130.0040.00413.30
8.0.120.0070.00016.85
8.0.110.0040.00416.90
8.0.100.0000.01016.86
8.0.90.0030.00316.92
8.0.80.0130.00616.93
8.0.70.0000.00716.75
8.0.60.0080.00016.78
8.0.50.0040.00416.83
8.0.30.0100.00917.10
8.0.20.0080.01117.40
8.0.10.0000.00717.11
8.0.00.0060.01116.68
7.4.330.0000.00515.12
7.4.320.0000.00616.60
7.4.300.0030.00316.39
7.4.290.0040.00416.48
7.4.280.0050.00216.59
7.4.270.0000.00716.60
7.4.260.0050.00216.47
7.4.250.0000.00716.60
7.4.240.0060.00216.59
7.4.230.0000.00716.59
7.4.220.0120.00616.46
7.4.210.0060.00916.68
7.4.200.0030.00316.42
7.4.160.0080.00816.40
7.4.150.0100.01517.40
7.4.140.0050.01217.86
7.4.130.0080.00916.48
7.4.120.0100.00716.41
7.4.110.0100.00716.58
7.4.100.0070.01016.32
7.4.90.0090.00916.36
7.4.80.0140.00316.59
7.4.70.0130.00616.63
7.4.60.0060.00916.52
7.4.50.0000.00916.39
7.4.40.0100.01016.35
7.4.30.0090.00816.48
7.4.00.0060.00915.23
7.3.330.0000.00513.23
7.3.320.0030.00313.31
7.3.310.0000.00716.13
7.3.300.0030.00316.20
7.3.290.0080.00816.20
7.3.280.0090.00916.18
7.3.270.0130.00317.40
7.3.260.0180.00616.38
7.3.250.0130.01216.41
7.3.240.0030.01816.29
7.3.230.0060.01216.39
7.3.210.0130.00916.14
7.3.200.0030.01419.39
7.3.190.0100.01016.49
7.3.180.0130.00316.43
7.3.170.0110.01116.34
7.3.160.0000.01516.23
7.2.330.0030.01316.77
7.2.320.0200.00716.74
7.2.310.0140.00316.61
7.2.300.0120.00916.58
7.2.290.0100.01416.34
7.2.60.0100.00316.73
7.2.00.0060.00919.38
7.1.200.0060.00915.59
7.1.100.0090.00317.80
7.1.70.0000.00817.16
7.1.60.0070.01719.34
7.1.50.0090.01316.98
7.1.00.0100.06722.31
7.0.200.0040.00416.71
7.0.140.0100.06322.00
7.0.60.0100.07020.02
7.0.50.0070.04017.96
7.0.40.0030.09020.21
7.0.30.0330.07020.23
7.0.20.0300.05320.12
7.0.10.0030.05720.25
7.0.00.0070.06720.18
5.6.280.0000.07720.89
5.6.210.0070.05020.67
5.6.200.0070.05318.27
5.6.190.0130.08320.39
5.6.180.0100.08720.45
5.6.170.0170.04720.62
5.6.160.0170.05020.52
5.6.150.0030.05318.27
5.6.140.0030.04318.28
5.6.130.0070.07318.23
5.6.120.0030.05720.99
5.6.110.0100.08021.14
5.6.100.0070.08321.11
5.6.90.0070.06320.95
5.6.80.0070.07020.51
5.5.350.0130.04720.32
5.5.340.0030.08018.09
5.5.330.0100.08320.34
5.5.320.0330.07020.14
5.5.310.0370.07020.39
5.5.300.0070.08017.93
5.5.290.0070.05718.02
5.5.280.0070.04020.68
5.5.270.0070.08320.87
5.5.260.0030.04720.68
5.5.250.0100.06320.66
5.5.240.0270.05720.07
5.4.450.1000.05319.59
5.4.440.0900.05019.45
5.4.430.0500.05019.68
5.4.420.0170.05019.63
5.4.410.0100.05319.35
5.4.400.0900.06318.76
5.4.390.1000.04718.73
5.4.380.0930.05018.53
5.4.370.1230.07718.84
5.4.360.0430.05718.63
5.4.350.0110.03412.02
5.4.340.0240.08012.02
5.4.320.0180.07312.50
5.4.310.0100.06612.50
5.4.300.0130.06212.50
5.4.290.0070.04812.50
5.4.280.0150.08012.39
5.4.270.0220.08612.39
5.4.260.0110.06712.39
5.4.250.0280.06812.40
5.4.240.0120.06112.39
5.4.230.0140.07212.39
5.4.220.0070.04412.38
5.4.210.0180.04712.38
5.4.200.0100.06112.39
5.4.190.0100.04312.38
5.4.180.0110.03912.38
5.4.170.0080.05312.39
5.4.160.0230.05012.39
5.4.150.0190.07412.38
5.4.140.0200.08012.07
5.4.130.0120.07612.06
5.4.120.0240.06312.02
5.4.110.0100.06212.01
5.4.100.0070.09012.01
5.4.90.0170.08812.02
5.4.80.0140.07512.01
5.4.70.0240.06912.00
5.4.60.0140.06412.01
5.4.50.0190.07512.01
5.4.40.0180.08611.99
5.4.30.0100.08011.99
5.4.20.0340.12711.99
5.4.10.0230.08011.99
5.4.00.0220.07911.48
5.3.290.0260.12312.80
5.3.280.0130.06112.71
5.3.270.0130.06212.72
5.3.260.0320.09112.71
5.3.250.0280.11712.72
5.3.240.0210.07112.72
5.3.230.0150.06412.71
5.3.220.0220.10912.68
5.3.210.0180.07412.68
5.3.200.0120.07312.68
5.3.190.0260.08412.67
5.3.180.0140.04112.68
5.3.170.0100.05212.67
5.3.160.0130.04712.67
5.3.150.0140.04612.68
5.3.140.0150.07312.66
5.3.130.0070.05712.66
5.3.120.0080.04412.66
5.3.110.0120.05412.66
5.3.100.0090.05512.12
5.3.90.0290.10912.10
5.3.80.0150.07212.09
5.3.70.0090.06312.09
5.3.60.0160.04612.08
5.3.50.0120.04712.03
5.3.40.0110.04212.03
5.3.30.0140.04311.98
5.3.20.0080.04311.76
5.3.10.0200.09311.73
5.3.00.0140.05711.72
5.2.170.0090.0379.23
5.2.160.0060.0369.22
5.2.150.0280.1329.22
5.2.140.0120.0569.22
5.2.130.0090.0379.18
5.2.120.0130.0349.18
5.2.110.0140.0779.19
5.2.100.0080.0359.18
5.2.90.0070.0359.18
5.2.80.0030.0339.18
5.2.70.0070.0429.18
5.2.60.0130.0569.13
5.2.50.0090.0329.10
5.2.40.0040.0299.08
5.2.30.0060.0339.05
5.2.20.0030.0339.03
5.2.10.0150.0688.94
5.2.00.0070.0428.81
5.1.60.0120.0488.09
5.1.50.0070.0338.09
5.1.40.0080.0278.07
5.1.30.0050.0358.41
5.1.20.0100.0278.44
5.1.10.0080.0308.16
5.1.00.0060.0318.17
5.0.50.0040.0256.64
5.0.40.0050.0286.50
5.0.30.0090.0626.32
5.0.20.0050.0596.28
5.0.10.0090.0466.25
5.0.00.0030.0456.25
4.4.90.0030.0214.78
4.4.80.0050.0164.76
4.4.70.0030.0194.76
4.4.60.0110.0364.75
4.4.50.0000.0354.77
4.4.40.0070.0484.71
4.4.30.0100.0284.75
4.4.20.0090.0274.85
4.4.10.0000.0234.85
4.4.00.0060.0504.76
4.3.110.0120.0434.66
4.3.100.0140.0324.67
4.3.90.0080.0234.63
4.3.80.0080.0494.58
4.3.70.0070.0154.63
4.3.60.0100.0444.63
4.3.50.0070.0234.63
4.3.40.0050.0284.54
4.3.30.0060.0263.30
4.3.20.0120.0463.28
4.3.10.0030.0233.24
4.3.00.0130.0207.38

preferences:
51.89 ms | 401 KiB | 5 Q