3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name1 = 'no_gravity'; $name2 = 'n0_gr4v1ty'; function stringDiff($string1, $string2) { $x = str_split($string1); $y = str_split($string2); return array_diff($x, $y); } var_dump(stringDiff($name1, $name2));

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.0090.01216.63
8.3.50.0150.00016.46
8.3.40.0070.01018.61
8.3.30.0090.00618.77
8.3.20.0070.00020.25
8.3.10.0080.00022.09
8.3.00.0040.00423.67
8.2.180.0090.01216.50
8.2.170.0080.00822.96
8.2.160.0120.00320.47
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0060.00618.82
8.2.110.0030.00622.01
8.2.100.0110.00017.78
8.2.90.0030.00517.50
8.2.80.0040.00418.83
8.2.70.0000.00817.50
8.2.60.0080.00017.78
8.2.50.0040.00418.10
8.2.40.0000.00722.15
8.2.30.0030.00619.25
8.2.20.0040.00418.17
8.2.10.0070.00018.10
8.2.00.0080.00018.00
8.1.280.0130.01025.92
8.1.270.0040.00424.02
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0040.00423.66
8.1.230.0080.00420.85
8.1.220.0000.00817.74
8.1.210.0090.00018.77
8.1.200.0080.00017.22
8.1.190.0080.00017.11
8.1.180.0040.00418.10
8.1.170.0040.00418.58
8.1.160.0050.00318.82
8.1.150.0070.00019.94
8.1.140.0030.00617.27
8.1.130.0030.00319.05
8.1.120.0070.00017.36
8.1.110.0070.00017.37
8.1.100.0000.00717.41
8.1.90.0040.00417.32
8.1.80.0000.00817.28
8.1.70.0040.00417.39
8.1.60.0040.00417.39
8.1.50.0000.00717.52
8.1.40.0000.00817.55
8.1.30.0040.00417.57
8.1.20.0020.00517.67
8.1.10.0050.00217.51
8.1.00.0100.00017.26
8.0.300.0000.00718.77
8.0.290.0050.00316.75
8.0.280.0000.00718.37
8.0.270.0030.00317.22
8.0.260.0000.00718.31
8.0.250.0040.00416.84
8.0.240.0030.00616.89
8.0.230.0030.00316.84
8.0.220.0030.00316.78
8.0.210.0000.00716.70
8.0.200.0030.00316.85
8.0.190.0040.00416.77
8.0.180.0030.00516.74
8.0.170.0050.00316.75
8.0.160.0070.00016.90
8.0.150.0090.00316.78
8.0.140.0000.00816.78
8.0.130.0000.00513.24
8.0.120.0050.00216.84
8.0.110.0000.00816.84
8.0.100.0040.00416.83
8.0.90.0000.00716.67
8.0.80.0030.01216.82
8.0.70.0000.00816.70
8.0.60.0040.00416.69
8.0.50.0000.00716.88
8.0.30.0100.00617.06
8.0.20.0130.00617.40
8.0.10.0040.00416.98
8.0.00.0100.00716.77
7.4.330.0000.00515.55
7.4.320.0000.00716.36
7.4.300.0060.00016.39
7.4.290.0000.00816.47
7.4.280.0040.00416.40
7.4.270.0060.00316.50
7.4.260.0030.00316.47
7.4.250.0000.00816.48
7.4.240.0030.00316.50
7.4.230.0030.00516.43
7.4.220.0070.01016.54
7.4.210.0030.01716.59
7.4.200.0050.00216.64
7.4.160.0090.00716.51
7.4.150.0110.00717.40
7.4.140.0110.00717.86
7.4.130.0170.00316.48
7.4.120.0080.00916.37
7.4.110.0120.00916.48
7.4.100.0070.01316.48
7.4.90.0100.00716.52
7.4.80.0090.00919.39
7.4.70.0130.00716.34
7.4.60.0060.01116.52
7.4.50.0060.00916.51
7.4.40.0100.00616.47
7.4.30.0130.00316.36
7.4.00.0110.00415.13
7.3.330.0050.00013.23
7.3.320.0030.00313.09
7.3.310.0000.00716.13
7.3.300.0000.00616.18
7.3.290.0040.01216.25
7.3.280.0080.00816.23
7.3.270.0130.00417.40
7.3.260.0150.00616.34
7.3.250.0110.00616.30
7.3.240.0110.00516.45
7.3.230.0130.00316.26
7.3.210.0080.00816.30
7.3.200.0120.00416.31
7.3.190.0030.01216.30
7.3.180.0060.01016.29
7.3.170.0030.01316.29
7.3.160.0060.00916.36
7.2.330.0060.01216.73
7.2.320.0090.01016.65
7.2.310.0130.00316.63
7.2.300.0100.00716.36
7.2.290.0100.00716.64
7.2.60.0100.00316.81
7.1.200.0120.00415.74
7.1.100.0270.01016.18
7.1.90.0140.00616.34
7.1.80.0160.00816.32
7.1.70.0120.00815.29
7.1.60.0180.01133.25
7.1.50.0280.01232.96
7.1.40.0170.02032.46
7.1.30.0330.01332.54
7.1.20.0210.01332.91
7.1.10.0310.00414.95
7.1.00.3460.01014.74
7.0.240.0200.00815.97
7.0.230.0110.00715.89
7.0.220.1660.00315.88
7.0.210.0190.00714.61
7.0.200.0100.00815.01
7.0.190.0090.01514.80
7.0.180.0140.00514.41
7.0.170.0120.00614.31
7.0.160.3430.00714.41
7.0.150.0140.00714.41
7.0.140.0200.00814.48
7.0.130.0090.00914.83
7.0.120.0180.00714.59
7.0.110.3490.01014.44
7.0.100.0130.00414.45
7.0.90.0140.01414.38
7.0.80.0130.01314.44
7.0.70.0050.01414.58
7.0.60.0140.00914.29
7.0.50.2850.01514.42
7.0.40.0130.01014.64
7.0.30.0100.01014.59
7.0.20.0120.00914.47
7.0.10.0340.01114.70
7.0.00.0290.01014.45

preferences:
33.07 ms | 400 KiB | 5 Q