3v4l.org

run code in 300+ PHP versions simultaneously
<?php global $user_login, $current_user; $user_info = array( 'nothing', 'subscriber' ); $roles = array ( 'administrator', 'subscriber', ); if (array_intersect( $roles, $user_info)) { echo 'success'; } else { echo 'failure'; } ?>

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.0070.00018.14
8.3.120.0060.00320.61
8.3.110.0030.00616.25
8.3.100.0030.00716.45
8.3.90.0080.00016.50
8.3.80.0100.00018.55
8.3.70.0090.00616.25
8.3.60.0030.01718.18
8.3.50.0160.00722.71
8.3.40.0090.00618.59
8.3.30.0100.00318.42
8.3.20.0040.00420.21
8.3.10.0080.00020.36
8.3.00.0080.00020.70
8.2.250.0060.00316.67
8.2.240.0070.00017.00
8.2.230.0000.00720.94
8.2.220.0090.00024.06
8.2.210.0060.01226.77
8.2.200.0050.00518.28
8.2.190.0130.00318.29
8.2.180.0100.01316.63
8.2.170.0110.00322.96
8.2.160.0070.01022.12
8.2.150.0040.00424.18
8.2.140.0100.00324.66
8.2.130.0040.00421.11
8.2.120.0050.00326.35
8.2.110.0030.00621.97
8.2.100.0120.00017.84
8.2.90.0000.00817.84
8.2.80.0090.00018.95
8.2.70.0000.00817.50
8.2.60.0040.00418.03
8.2.50.0040.00418.09
8.2.40.0060.00320.47
8.2.30.0000.00819.39
8.2.20.0050.00217.66
8.2.10.0070.00018.00
8.2.00.0040.00417.89
8.1.300.0060.00317.80
8.1.290.0030.00618.88
8.1.280.0120.00625.92
8.1.270.0060.00323.99
8.1.260.0000.00828.09
8.1.250.0070.00028.09
8.1.240.0030.00623.84
8.1.230.0070.00420.89
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0000.00917.23
8.1.190.0080.00017.22
8.1.180.0000.00718.10
8.1.170.0000.00818.52
8.1.160.0000.00720.75
8.1.150.0000.00920.64
8.1.140.0030.00519.50
8.1.130.0080.00017.58
8.1.120.0040.00417.39
8.1.110.0000.00717.34
8.1.100.0050.00317.30
8.1.90.0030.00517.39
8.1.80.0040.00417.34
8.1.70.0030.00317.29
8.1.60.0040.00617.40
8.1.50.0110.00217.32
8.1.40.0090.00317.42
8.1.30.0120.00317.56
8.1.20.0100.00417.50
8.1.10.0090.00617.44
8.1.00.0060.00717.36
8.0.300.0070.00019.94
8.0.290.0060.00316.63
8.0.280.0000.00718.43
8.0.270.0080.00017.16
8.0.260.0050.00217.15
8.0.250.0040.00416.86
8.0.240.0000.00716.88
8.0.230.0030.00516.89
8.0.220.0000.00716.82
8.0.210.0000.00716.83
8.0.200.0090.00016.71
8.0.190.0070.00616.88
8.0.180.0080.00416.74
8.0.170.0070.00316.78
8.0.160.0080.00316.81
8.0.150.0080.00416.73
8.0.140.0080.00516.72
8.0.130.0060.00515.77
8.0.120.0080.00616.75
8.0.110.0070.00516.69
8.0.100.0080.00416.69
8.0.90.0100.00316.68
8.0.80.0080.00516.77
8.0.70.0080.00416.67
8.0.60.0060.00716.73
8.0.50.0080.00716.83
8.0.30.0100.00616.89
8.0.20.0100.00817.11
8.0.10.0080.00716.88
8.0.00.0090.00616.90
7.4.330.0000.00516.67
7.4.320.0060.00016.36
7.4.300.0030.00316.52
7.4.290.0100.00316.42
7.4.280.0090.00316.44
7.4.270.0080.00316.45
7.4.260.0060.00716.41
7.4.250.0090.00516.31
7.4.240.0120.00216.45
7.4.230.0110.00316.37
7.4.220.0110.00616.50
7.4.210.0130.00316.44
7.4.200.0100.00316.44
7.4.190.0090.00616.41
7.4.180.0120.00316.46
7.4.160.0110.00516.52
7.4.150.0130.00416.63
7.4.140.0100.00916.94
7.4.130.0090.00716.34
7.4.120.0090.00616.34
7.4.110.0080.00816.26
7.4.100.0110.00616.40
7.4.90.0100.00716.33
7.4.80.0080.00917.07
7.4.70.0110.00616.33
7.4.60.0120.00516.38
7.4.50.0110.00516.30
7.4.40.0060.00816.21
7.4.30.0090.00716.30
7.4.20.0140.00116.28
7.4.10.0110.00416.27
7.4.00.0100.00515.89
7.3.330.0060.00715.24
7.3.320.0090.00515.26
7.3.310.0100.00316.11
7.3.300.0090.00516.04
7.3.290.0090.00816.08
7.3.280.0060.00916.03
7.3.270.0080.00716.33
7.3.260.0110.00416.20
7.3.250.0120.00516.16
7.3.240.0100.00616.10
7.3.230.0100.00616.14
7.3.220.0110.00315.97
7.3.210.0060.00916.08
7.3.200.0080.00615.92
7.3.190.0090.00616.03
7.3.180.0100.00616.12
7.3.170.0090.00615.87
7.3.160.0090.00615.97
7.3.150.0080.00515.97
7.3.140.0120.00316.00
7.3.130.0110.00315.93
7.3.120.0130.00415.92
7.3.110.0130.00415.96
7.3.100.0120.00415.94
7.3.90.0140.00216.20
7.3.80.0120.00416.03
7.3.70.0140.00216.27
7.3.60.0110.00416.25
7.3.50.0130.00216.29
7.3.40.0140.00116.30
7.3.30.0100.00516.31
7.3.20.0100.00716.81
7.3.10.0140.00316.75
7.3.00.0150.00416.73
7.2.340.0120.00416.15
7.2.330.0100.00616.13
7.2.320.0120.00616.18
7.2.310.0080.00816.21
7.2.300.0110.00616.25
7.2.290.0130.00316.33
7.2.280.0130.00316.19
7.2.270.0130.00316.09
7.2.260.0110.00516.15
7.2.250.0140.00216.17
7.2.240.0100.00616.15
7.2.230.0140.00316.22
7.2.220.0150.00116.12
7.2.210.0140.00216.17
7.2.200.0130.00416.16
7.2.190.0130.00216.25
7.2.180.0130.00316.25
7.2.170.0150.00016.38
7.2.160.0110.00416.19
7.2.150.0130.00317.02
7.2.140.0100.00616.98
7.2.130.0180.00117.16
7.2.120.0140.00317.06
7.2.110.0090.00817.02
7.2.100.0130.00517.08
7.2.90.0150.00416.90
7.2.80.0130.00416.99
7.2.70.0140.00416.96
7.2.60.0110.00516.89
7.2.50.0140.00316.93
7.2.40.0120.00516.98
7.2.30.0110.00716.99
7.2.20.0110.00617.04
7.2.10.0210.00717.30
7.2.00.0090.00817.02
7.1.330.0170.00116.09
7.1.320.0120.00416.06
7.1.310.0100.00516.11
7.1.300.0110.00415.93
7.1.290.0110.00416.02
7.1.280.0120.00416.07
7.1.270.0110.00715.96
7.1.260.0110.00416.04
7.1.250.0120.00415.94
7.1.240.0130.00316.05
7.1.230.0130.00216.11
7.1.220.0100.00616.02
7.1.210.0120.00416.05
7.1.200.0110.00416.04
7.1.190.0110.00615.94
7.1.180.0100.00615.99
7.1.170.0090.00715.89
7.1.160.0100.00615.92
7.1.150.0100.00515.91
7.1.140.0130.00315.89
7.1.130.0100.00716.09
7.1.120.0120.00515.93
7.1.110.0210.00517.16
7.1.100.0080.00717.43
7.1.90.0110.00617.22
7.1.80.0130.00417.16
7.1.70.0100.00516.95
7.1.60.0100.00917.81
7.1.50.0120.00416.96
7.1.40.0160.00017.22
7.1.30.0130.00317.15
7.1.20.0130.00417.02
7.1.10.0110.00417.24
7.1.00.0080.02318.42
7.0.330.0140.00216.84
7.0.320.0110.00316.83
7.0.310.0120.00416.81
7.0.300.0120.00416.87
7.0.290.0140.00216.83
7.0.280.0150.00216.79
7.0.270.0120.00516.76
7.0.260.0120.00516.98
7.0.250.0120.00417.03
7.0.240.0140.00217.05
7.0.230.0150.00217.17
7.0.220.0120.00517.02
7.0.210.0100.00616.95
7.0.200.0140.00616.55
7.0.190.0130.00416.87
7.0.180.0110.00616.98
7.0.170.0140.00217.10
7.0.160.0130.00516.95
7.0.150.0120.00416.99
7.0.140.0100.00816.78
7.0.130.0100.00617.01
7.0.120.0140.00316.99
7.0.110.0090.00716.87
7.0.100.0120.00416.89
7.0.90.0110.00516.79
7.0.80.0150.00116.80
7.0.70.0130.00416.88
7.0.60.0120.01418.11
7.0.50.0080.01617.02
7.0.40.0130.01117.76
7.0.30.0150.01717.78
7.0.20.0140.02317.53
7.0.10.0120.02517.76
7.0.00.0110.02517.67
5.6.400.0090.00715.72
5.6.390.0090.00715.54
5.6.380.0090.00815.58
5.6.370.0090.00715.59
5.6.360.0120.00415.70
5.6.350.0090.00715.67
5.6.340.0120.00515.69
5.6.330.0140.00115.73
5.6.320.0120.00315.66
5.6.310.0110.00515.66
5.6.300.0130.00415.54
5.6.290.0090.00615.79
5.6.280.0080.02316.94
5.6.270.0110.00515.70
5.6.260.0080.00815.71
5.6.250.0090.00615.75
5.6.240.0090.00615.64
5.6.230.0100.00615.80
5.6.220.0100.00615.90
5.6.210.0080.02417.08
5.6.200.0110.02216.48
5.6.190.0080.02317.04
5.6.180.0160.02316.91
5.6.170.0180.01117.03
5.6.160.0050.01917.07
5.6.150.0110.01116.49
5.6.140.0120.01216.33
5.6.130.0090.02416.33
5.6.120.0100.02217.13
5.6.110.0110.01717.14
5.6.100.0090.02517.12
5.6.90.0130.02017.12
5.6.80.0100.02216.88
5.6.70.0080.00715.76
5.6.60.0110.00315.86
5.6.50.0130.00215.65
5.6.40.0070.00615.64
5.6.30.0130.00115.82
5.6.20.0090.00515.69
5.6.10.0090.00515.65
5.6.00.0100.00415.73
5.5.380.0090.00415.88
5.5.370.0090.00515.83
5.5.360.0070.00615.61
5.5.350.0110.02216.75
5.5.340.0110.02016.13
5.5.330.0100.01716.88
5.5.320.0130.01316.73
5.5.310.0130.01316.70
5.5.300.0090.02316.18
5.5.290.0060.02516.19
5.5.280.0100.02016.91
5.5.270.0090.02416.98
5.5.260.0100.02016.88
5.5.250.0070.02616.99
5.5.240.0150.02116.83
5.5.230.0090.00415.71
5.5.220.0100.00215.71
5.5.210.0090.00315.84
5.5.200.0100.00415.59
5.5.190.0070.00615.70
5.5.180.0080.00515.53
5.5.170.0070.00615.41
5.5.160.0090.00415.68
5.5.150.0080.00415.41
5.5.140.0090.00315.48
5.5.130.0090.00415.42
5.5.120.0090.00315.56
5.5.110.0070.00615.46
5.5.100.0100.00315.71
5.5.90.0060.00715.68
5.5.80.0090.00415.72
5.5.70.0100.00315.67
5.5.60.0100.00315.53
5.5.50.0080.00515.66
5.5.40.0110.00215.66
5.5.30.0080.00515.76
5.5.20.0080.00515.80
5.5.10.0080.00515.63
5.5.00.0090.00415.66

preferences:
29.06 ms | 403 KiB | 5 Q