3v4l.org

run code in 300+ PHP versions simultaneously
<?php $emailed = array('cam.hurd@gmail.com', 'jeremy@derp.com', 'boooooooooop', 'dlfjdflkj', 'cam.hurd@gmail.com', 'jeremy@derp.com', 'boooooooooop', 'dlfjdflkj','cam.hurd@gmail.com', 'jeremy@derp.com', 'boooooooooop', 'dlfjdflkj'); $numberOfInvites = count($emailed); if ( $numberOfInvites == 1 ) { $message = $emailed[0] . ' was invited.'; } else if ( $numberOfInvites == 2) { $message = $emailed[0] . ' and ' . $emailed[0] . ' were invited.'; } else if ( $numberOfInvites > 2 and $numberOfInvites < 11 ) { $message = 'Invites sent to: ' . implode(', ', $emailed); } else { $message = 'Invites sent to: ' . implode(', ', array_slice($emailed, 0, 10)) . ' and ' . count($emailed - 10) . ' others!'; } echo $message;

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.0130.00618.55
8.3.50.0140.00522.05
8.3.40.0110.00318.67
8.3.30.0030.01019.04
8.3.20.0080.00020.34
8.3.10.0050.00322.02
8.3.00.0080.00022.39
8.2.180.0150.00616.75
8.2.170.0040.01122.96
8.2.160.0070.00719.15
8.2.150.0050.00324.18
8.2.140.0030.00624.66
8.2.130.0130.00726.16
8.2.120.0050.00317.50
8.2.110.0100.00722.27
8.2.100.0120.00018.03
8.2.90.0080.00019.13
8.2.80.0050.00317.97
8.2.70.0030.00617.61
8.2.60.0040.00418.03
8.2.50.0040.00418.10
8.2.40.0070.00020.46
8.2.30.0060.00318.08
8.2.20.0000.00817.76
8.2.10.0000.00819.59
8.2.00.0070.00317.68
8.1.280.0070.01025.92
8.1.270.0050.00322.20
8.1.260.0110.00326.35
8.1.250.0000.00828.09
8.1.240.0070.00322.53
8.1.230.0090.00317.81
8.1.220.0000.00717.74
8.1.210.0080.00018.77
8.1.200.0040.00417.35
8.1.190.0000.01017.35
8.1.180.0060.00318.10
8.1.170.0040.00418.38
8.1.160.0040.00422.18
8.1.150.0040.00418.64
8.1.140.0040.00417.45
8.1.130.0060.00317.82
8.1.120.0040.00417.46
8.1.110.0030.00317.35
8.1.100.0040.00417.35
8.1.90.0030.00317.40
8.1.80.0000.00717.47
8.1.70.0000.00717.45
8.1.60.0060.00317.44
8.1.50.0080.00017.43
8.1.40.0000.00717.51
8.1.30.0000.00717.67
8.1.20.0000.00817.54
8.1.10.0040.00417.54
8.1.00.0040.00417.48
8.0.300.0070.00019.95
8.0.290.0080.00016.75
8.0.280.0000.00718.36
8.0.270.0030.00317.25
8.0.260.0000.00816.89
8.0.250.0070.00017.00
8.0.240.0000.00717.05
8.0.230.0000.00717.00
8.0.220.0030.00316.93
8.0.210.0030.00616.83
8.0.200.0060.00016.99
8.0.190.0070.00017.08
8.0.180.0000.00716.86
8.0.170.0040.00416.99
8.0.160.0050.00216.97
8.0.150.0080.00016.86
8.0.140.0030.00316.81
8.0.130.0000.00513.31
8.0.120.0080.00016.85
8.0.110.0030.00516.83
8.0.100.0030.00617.00
8.0.90.0070.00016.90
8.0.80.0080.00816.92
8.0.70.0000.00716.96
8.0.60.0040.00416.95
8.0.50.0040.00416.89
8.0.30.0110.01417.12
8.0.20.0080.01217.40
8.0.10.0040.00417.09
8.0.00.0090.00916.85
7.4.330.0030.00315.00
7.4.320.0030.00316.60
7.4.300.0030.00316.65
7.4.290.0000.00716.55
7.4.280.0030.00316.59
7.4.270.0000.00716.49
7.4.260.0030.00316.48
7.4.250.0060.00316.36
7.4.240.0030.00416.52
7.4.230.0040.00416.63
7.4.220.0080.00816.54
7.4.210.0080.00916.56
7.4.200.0030.00316.53
7.4.190.0000.00816.47
7.4.160.0110.00816.33
7.4.150.0030.01417.40
7.4.140.0030.01417.86
7.4.130.0120.00916.54
7.4.120.0080.00916.48
7.4.110.0060.01616.46
7.4.100.0060.01016.55
7.4.90.0080.00816.35
7.4.80.0030.01619.39
7.4.70.0130.00616.62
7.4.60.0070.01016.49
7.4.50.0020.00216.30
7.4.40.0040.01422.77
7.4.30.0070.01116.69
7.4.00.0090.00515.07
7.3.330.0000.00613.30
7.3.320.0000.00513.04
7.3.310.0000.00716.14
7.3.300.0000.00716.38
7.3.290.0090.00916.35
7.3.280.0110.00716.34
7.3.270.0150.00917.40
7.3.260.0080.00816.34
7.3.250.0090.00816.29
7.3.240.0100.00616.34
7.3.230.0100.00716.49
7.3.210.0100.00716.46
7.3.200.0130.00319.39
7.3.190.0030.01316.44
7.3.180.0050.01116.56
7.3.170.0040.01216.35
7.3.160.0100.00616.36
7.3.120.0120.00214.88
7.3.110.0060.00614.69
7.3.100.0070.00714.66
7.3.90.0030.00614.92
7.3.80.0060.01014.87
7.3.70.0100.00314.90
7.3.60.0050.00514.52
7.3.50.0090.00614.57
7.3.40.0040.00714.89
7.3.30.0000.01114.91
7.3.20.0060.00916.43
7.3.10.0070.00716.74
7.3.00.0090.00616.63
7.2.330.0090.00916.48
7.2.320.0140.00316.82
7.2.310.0140.00316.74
7.2.300.0100.00716.46
7.2.290.0060.01516.86
7.2.250.0110.00415.09
7.2.240.0110.00714.94
7.2.230.0040.01115.24
7.2.220.0000.01515.15
7.2.210.0040.01214.62
7.2.200.0030.00914.81
7.2.190.0100.00314.76
7.2.180.0030.01315.07
7.2.170.0060.01214.75
7.2.60.0040.00817.04
7.1.330.0030.00915.62
7.1.320.0000.01515.89
7.1.310.0030.01415.59
7.1.300.0060.00615.63
7.1.290.0000.01715.89
7.1.280.0070.01015.49
7.1.270.0030.01315.48
7.1.260.0120.00015.76
7.1.200.0060.00915.59
7.1.70.0060.00617.23
7.1.60.0070.01019.82
7.1.50.0140.01117.00
7.1.00.0030.07722.43
7.0.200.0060.00616.78
7.0.140.0030.07321.97
7.0.60.0070.08020.09
7.0.50.0100.04317.68
7.0.40.0030.09020.08
7.0.30.0300.05020.13
7.0.20.0330.06320.19
7.0.10.0370.06020.12
7.0.00.0070.09320.05
5.6.280.0000.07720.77
5.6.210.0070.05020.45
5.6.200.0030.08018.19
5.6.190.0170.05320.66
5.6.180.3670.05020.47
5.6.170.0270.06320.50
5.6.160.0100.08020.49
5.6.150.0100.04718.14
5.6.140.0000.06318.10
5.6.130.0130.07718.16
5.6.120.0030.04021.14
5.6.110.0170.07321.14
5.6.100.0070.08021.13
5.6.90.0070.08721.03
5.6.80.0030.04020.58
5.6.70.0300.07720.39
5.5.350.0070.08020.39
5.5.340.0170.07017.88
5.5.330.0070.04020.26
5.5.320.0270.07720.18
5.5.310.0170.04720.13
5.5.300.0100.06317.95
5.5.290.0070.04317.98
5.5.280.0170.03320.93
5.5.270.0100.04020.79
5.5.260.0100.08020.72
5.5.250.0130.07320.61
5.5.240.0070.04020.06
5.4.450.0730.05319.10
5.4.440.0100.07019.45
5.4.430.0170.04719.32
5.4.420.0030.06019.45
5.4.410.0100.05319.41
5.4.400.0170.04718.68
5.4.390.0170.06718.69
5.4.380.0300.05018.77
5.4.370.0200.05718.71
5.4.360.0170.05018.68
5.4.350.0170.05018.53
5.4.340.0300.04318.62
5.4.320.0050.03912.46
5.4.310.0090.04212.45
5.4.300.0060.04012.46
5.4.290.0070.04312.45
5.4.280.0050.03812.36
5.4.270.0100.07718.91
5.4.260.0030.07318.79
5.4.250.0070.08318.97
5.4.240.0130.07718.84
5.4.230.0170.07018.84
5.4.220.0270.05718.91
5.4.210.0030.06718.98
5.4.200.0130.05018.78
5.4.190.0130.05719.17
5.4.180.0130.07318.75
5.4.170.0070.06318.91
5.4.160.0230.05019.04
5.4.150.0070.07019.06
5.4.140.0200.05316.28
5.4.130.0200.04016.39
5.4.120.0130.07316.57
5.4.110.0170.05316.35
5.4.100.0100.06716.51
5.4.90.0200.04016.53
5.4.80.0070.06716.38
5.4.70.0130.04716.39
5.4.60.0070.08016.45
5.4.50.0000.06016.33
5.4.40.0130.05716.54
5.4.30.0070.05016.54
5.4.20.0070.05316.55
5.4.10.0200.04716.54
5.4.00.0130.07015.93
5.3.290.0080.03912.80
5.3.280.0130.05014.79
5.3.270.0170.07714.75
5.3.260.0070.05314.66
5.3.250.0130.05314.56
5.3.240.0130.04714.80
5.3.230.0070.07014.77
5.3.220.0170.06014.71
5.3.210.0170.04714.55
5.3.200.0100.05014.73
5.3.190.0170.06714.55
5.3.180.0070.07714.49
5.3.170.0170.04714.55
5.3.160.0130.04714.67
5.3.150.0170.07714.56
5.3.140.0030.06314.72
5.3.130.0130.05314.61
5.3.120.0030.05714.75
5.3.110.0130.06014.54
5.3.100.0130.04714.19
5.3.90.0130.06314.17
5.3.80.0130.06014.06
5.3.70.0070.05014.06
5.3.60.0000.06013.98
5.3.50.0200.04313.93
5.3.40.0200.05713.93
5.3.30.0130.05014.00
5.3.20.0070.04713.75
5.3.10.0030.06713.76
5.3.00.0100.06713.75
5.2.170.0070.04011.36
5.2.160.0130.04311.13
5.2.150.0070.05711.28
5.2.140.0070.05011.26
5.2.130.0030.05711.25
5.2.120.0070.05711.09
5.2.110.0030.04311.24
5.2.100.0200.04011.32
5.2.90.0130.03711.29
5.2.80.0030.05311.23
5.2.70.0070.05711.23
5.2.60.0100.05311.22
5.2.50.0070.04711.01
5.2.40.0100.05311.23
5.2.30.0100.03710.95
5.2.20.0100.04710.89
5.2.10.0200.05011.10
5.2.00.0200.04010.84
5.1.60.0000.04310.22
5.1.50.0070.04010.30
5.1.40.0070.03310.12
5.1.30.0000.05310.38
5.1.20.0200.03710.55
5.1.10.0070.03710.38
5.1.00.0030.03710.36
5.0.50.0000.0438.56
5.0.40.0130.0208.74
5.0.30.0030.0578.31
5.0.20.0030.0438.46
5.0.10.0070.0438.37
5.0.00.0030.0408.46
4.4.90.0000.0276.34
4.4.80.0030.0206.34
4.4.70.0070.0206.34
4.4.60.0030.0236.34
4.4.50.0070.0176.34
4.4.40.0000.0376.34
4.4.30.0030.0206.34
4.4.20.0000.0336.34
4.4.10.0070.0206.34
4.4.00.0000.0506.34
4.3.110.0100.0276.34
4.3.100.0070.0206.34
4.3.90.0130.0206.34
4.3.80.0070.0376.34
4.3.70.0030.0276.34
4.3.60.0030.0236.34
4.3.50.0030.0276.33
4.3.40.0070.0336.33
4.3.30.0100.0236.33
4.3.20.0030.0206.33
4.3.10.0000.0236.33
4.3.00.0070.0237.38

preferences:
40.52 ms | 401 KiB | 5 Q