3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rep_power = $user['reputation']; $posneg = ''; if ($user['reputation'] == 0) { $rep_img = 'balance'; $rep_power = $user['reputation'] * -1; } elseif ($user['reputation'] < 0) { $rep_img = 'neg'; $rep_img_2 = 'highneg'; $rep_power = $user['reputation'] * -1; } else { $rep_img = 'pos'; $rep_img_2 = 'highpos'; }

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.0120.00918.22
8.3.50.0080.00818.19
8.3.40.0150.00318.84
8.3.30.0040.01118.75
8.3.20.0050.00320.12
8.3.10.0040.00423.57
8.3.00.0000.01117.78
8.2.180.0110.00418.40
8.2.170.0070.01122.96
8.2.160.0070.00720.38
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0030.00326.16
8.2.120.0080.00021.05
8.2.110.0060.01321.08
8.2.100.0090.00318.03
8.2.90.0000.00822.16
8.2.80.0060.00320.33
8.2.70.0090.00018.02
8.2.60.0000.00817.80
8.2.50.0040.00418.34
8.2.40.0070.00020.42
8.2.30.0040.00419.25
8.2.20.0030.00618.00
8.2.10.0000.00718.12
8.2.00.0070.00018.36
8.1.280.0120.00325.92
8.1.270.0060.00322.09
8.1.260.0030.00726.35
8.1.250.0050.00328.09
8.1.240.0030.00622.04
8.1.230.0040.00820.91
8.1.220.0000.00817.74
8.1.210.0000.00818.95
8.1.200.0060.00317.13
8.1.190.0040.00417.35
8.1.180.0030.00518.10
8.1.170.0040.00418.65
8.1.160.0040.00418.89
8.1.150.0000.00820.26
8.1.140.0030.00617.64
8.1.130.0080.00019.01
8.1.120.0050.00317.41
8.1.110.0040.00417.37
8.1.100.0040.00417.49
8.1.90.0070.00017.38
8.1.80.0000.00817.49
8.1.70.0070.00017.48
8.1.60.0040.00417.61
8.1.50.0000.00817.50
8.1.40.0040.00417.41
8.1.30.0030.00517.71
8.1.20.0000.00717.62
8.1.10.0000.00717.62
8.1.00.0000.00817.39
8.0.300.0060.00319.89
8.0.290.0040.00416.75
8.0.280.0080.00018.45
8.0.270.0070.00017.13
8.0.260.0000.00616.89
8.0.250.0070.00017.02
8.0.240.0030.00317.02
8.0.230.0030.00317.02
8.0.220.0070.00016.89
8.0.210.0030.00316.96
8.0.200.0000.00717.02
8.0.190.0030.00717.03
8.0.180.0000.00716.97
8.0.170.0060.00316.81
8.0.160.0040.00416.88
8.0.150.0000.00716.77
8.0.140.0060.00316.84
8.0.130.0030.00313.34
8.0.120.0080.00016.82
8.0.110.0080.00017.02
8.0.100.0040.00416.98
8.0.90.0050.00216.91
8.0.80.0070.01516.84
8.0.70.0040.00416.83
8.0.60.0000.00816.78
8.0.50.0040.00416.84
8.0.30.0100.00817.24
8.0.20.0080.01117.40
8.0.10.0000.00717.04
8.0.00.0110.00916.83
7.4.330.0000.00515.55
7.4.320.0030.00316.52
7.4.300.0030.00316.58
7.4.290.0000.00716.52
7.4.280.0040.00416.40
7.4.270.0000.00716.52
7.4.260.0070.00016.38
7.4.250.0050.00216.56
7.4.240.0000.00816.52
7.4.230.0030.00316.58
7.4.220.0040.00416.43
7.4.210.0100.00716.59
7.4.200.0030.00316.70
7.4.160.0120.00716.56
7.4.150.0110.00617.40
7.4.140.0100.00817.86
7.4.130.0080.00816.54
7.4.120.0100.00816.57
7.4.110.0120.00516.51
7.4.100.0130.00316.56
7.4.90.0070.01016.38
7.4.80.0140.01019.39
7.4.70.0070.01116.51
7.4.60.0040.01816.58
7.4.50.0070.00716.45
7.4.40.0070.01316.73
7.4.00.0060.01115.07
7.3.330.0030.00313.04
7.3.320.0030.00313.08
7.3.310.0050.00216.33
7.3.300.0040.00416.33
7.3.290.0070.00716.29
7.3.280.0070.00816.26
7.3.270.0090.00917.40
7.3.260.0110.00916.36
7.3.240.0100.00916.33
7.3.230.0100.00716.30
7.3.210.0060.00916.39
7.3.200.0080.01116.30
7.3.190.0030.01316.39
7.3.180.0060.00916.38
7.3.170.0060.01016.32
7.3.160.0120.00616.61
7.3.120.0090.00615.04
7.3.110.0020.01315.15
7.3.100.0070.00715.06
7.3.90.0060.00715.12
7.3.80.0030.01015.00
7.3.70.0050.01315.09
7.3.60.0080.00614.99
7.3.50.0070.00715.03
7.3.40.0060.00715.02
7.3.30.0080.00415.00
7.3.20.0050.00816.69
7.3.10.0060.00516.59
7.3.00.0040.00916.63
7.2.330.0110.00716.71
7.2.320.0070.01016.79
7.2.310.0130.00316.59
7.2.300.0110.00816.50
7.2.290.0030.01516.44
7.2.250.0030.01315.16
7.2.240.0080.01115.07
7.2.230.0050.00915.10
7.2.220.0060.00815.13
7.2.210.0070.00715.15
7.2.200.0070.01015.12
7.2.190.0030.01215.09
7.2.180.0000.01215.19
7.2.170.0050.00815.09
7.2.60.0140.00016.89
7.2.20.0390.00517.85
7.2.10.0270.00518.01
7.2.00.0250.00817.72
7.1.330.0070.00815.75
7.1.320.0030.00815.74
7.1.310.0050.00715.68
7.1.300.0050.00715.46
7.1.290.0070.00715.80
7.1.280.0020.01115.66
7.1.270.0070.00415.67
7.1.260.0090.00415.82
7.1.200.0040.00815.57
7.1.140.0270.01216.69
7.1.130.0300.00816.78
7.1.120.0330.01016.74
7.1.110.0230.00716.11
7.1.100.0280.00816.22
7.1.90.0830.00816.02
7.1.80.0290.00915.99
7.1.70.0250.01115.08
7.1.60.0400.02033.15
7.1.50.0420.01432.88
7.1.40.0300.01532.44
7.1.30.0400.01332.63
7.1.20.0420.01732.74
7.1.10.0260.01014.89
7.1.00.0240.01114.91

preferences:
45.19 ms | 401 KiB | 5 Q