3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = new \StdClass; $obj->textfield->id = 'text12'; $obj->textfield->text = 'herro'; $anotherObj = new \StdClass; $anotherObj->textfield->id = 'text1'; $anotherObj->textfield->text = 'moarrr text'; $yesAnother = new \StdClass; $yesAnother->textfield->id = 'text11'; $yesAnother->textfield->text = 'omggggg'; $array = array($obj, $anotherObj, $yesAnother); usort($array, function($a, $b) { preg_match_all('#\d+#', $a->textfield->id, $matchesA); preg_match_all('#\d+#', $b->textfield->id, $matchesB); $idNumA = (int)$matchesA[0][0]; $idNumB = (int)$matchesB[0][0]; return $idNumA > $idNumB; }); var_dump($array);

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.120.0100.00619.00
8.3.110.0090.00917.00
8.3.100.0030.00624.06
8.3.90.0060.00326.77
8.3.80.0060.00318.71
8.3.70.0060.01216.61
8.3.60.0110.00416.61
8.3.50.0220.00722.81
8.3.40.0120.00618.84
8.3.30.0090.00618.88
8.3.20.0000.00720.33
8.3.10.0070.00021.91
8.3.00.0050.00319.51
8.2.240.0000.00818.88
8.2.230.0130.00720.94
8.2.220.0060.00337.54
8.2.210.0120.00626.77
8.2.200.0000.01116.75
8.2.190.0140.00318.46
8.2.180.0140.00016.63
8.2.170.0100.00622.96
8.2.160.0140.00020.53
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0090.00020.97
8.2.110.0080.00022.12
8.2.100.0110.00019.30
8.2.90.0000.00819.07
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0000.01117.68
8.2.50.0030.00518.07
8.2.40.0040.00418.09
8.2.30.0000.00817.92
8.2.20.0040.00417.79
8.2.10.0040.00417.91
8.2.00.0050.00217.63
8.1.300.0000.01016.94
8.1.290.0060.00318.88
8.1.280.0070.00725.92
8.1.270.0130.00321.82
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00623.84
8.1.230.0030.00819.02
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0070.00317.23
8.1.190.0040.00417.22
8.1.180.0050.00318.10
8.1.170.0030.00618.54
8.1.160.0040.00422.05
8.1.150.0000.00718.86
8.1.140.0070.00017.38
8.1.130.0000.00717.87
8.1.120.0050.00217.34
8.1.110.0000.00817.46
8.1.100.0040.00417.42
8.1.90.0070.00017.37
8.1.80.0000.00717.50
8.1.70.0030.00317.37
8.1.60.0040.00417.62
8.1.50.0000.00917.52
8.1.40.0030.00617.59
8.1.30.0050.00317.71
8.1.20.0050.00317.59
8.1.10.0060.00317.54
8.1.00.0070.00317.50
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0000.00718.48
8.0.270.0070.00017.23
8.0.260.0000.00817.24
8.0.250.0030.00317.00
8.0.240.0030.00316.97
8.0.230.0000.00717.04
8.0.220.0030.00316.95
8.0.210.0070.00016.94
8.0.200.0070.00016.98
8.0.190.0030.00317.00
8.0.180.0040.00416.94
8.0.170.0080.00016.96
8.0.160.0000.00716.99
8.0.150.0040.00416.93
8.0.140.0090.00316.79
8.0.130.0030.00313.39
8.0.120.0040.00416.91
8.0.110.0080.00016.87
8.0.100.0040.00416.80
8.0.90.0030.00516.82
8.0.80.0090.00616.82
8.0.70.0020.00517.00
8.0.60.0000.00817.00
8.0.50.0040.00417.04
8.0.30.0100.00917.29
8.0.20.0100.01217.40
8.0.10.0040.00416.91
8.0.00.0120.00516.88
7.4.330.0030.00315.17
7.4.320.0000.00716.76
7.4.300.0030.00316.77
7.4.290.0070.00016.84
7.4.280.0040.00416.69
7.4.270.0030.00516.89
7.4.260.0080.00016.73
7.4.250.0090.00016.80
7.4.240.0050.00216.76
7.4.230.0030.00316.69
7.4.220.0120.00616.75
7.4.210.0110.00316.72
7.4.200.0050.00216.83
7.4.160.0090.00916.64
7.4.150.0100.01417.40
7.4.140.0100.00917.86
7.4.130.0080.01216.69
7.4.120.0130.00816.73
7.4.110.0060.01216.79
7.4.100.0090.00916.85
7.4.90.0140.00416.83
7.4.80.0090.00919.39
7.4.70.0060.01816.61
7.4.60.0110.00816.81
7.4.50.0050.00016.89
7.4.40.0060.01316.71
7.4.30.0070.01016.77
7.4.00.0100.00715.23
7.3.330.0060.00013.58
7.3.320.0000.00513.59
7.3.310.0060.00016.70
7.3.300.0000.00716.43
7.3.290.0060.00916.61
7.3.280.0080.01016.58
7.3.270.0100.00717.40
7.3.260.0050.01416.86
7.3.250.0060.01116.59
7.3.240.0100.01316.79
7.3.230.0100.00716.73
7.3.210.0090.00916.70
7.3.200.0030.01316.81
7.3.190.0090.01216.85
7.3.180.0040.01216.51
7.3.170.0030.01216.73
7.3.160.0030.01516.52
7.2.330.0090.01217.00
7.2.320.0160.00616.84
7.2.310.0060.01316.85
7.2.300.0120.00617.00
7.2.290.0130.00916.88
7.2.00.0230.00818.96
7.1.100.0030.01018.22
7.1.70.0070.00017.02
7.1.60.0100.01619.40
7.1.50.0040.01517.01
7.1.00.0030.07022.52
7.0.200.0000.00716.95
7.0.140.0000.07721.97
7.0.60.0170.07019.95
7.0.50.0070.05317.90
7.0.40.0100.04719.98
7.0.30.0430.04320.32
7.0.20.0130.09020.14
7.0.10.0330.05020.32
7.0.00.0030.04020.31
5.6.280.0100.06721.13
5.6.210.0130.04720.61
5.6.200.0030.04318.25
5.6.190.0100.08320.65
5.6.180.0330.07320.55
5.6.170.0270.07020.50
5.6.160.0070.07020.56
5.6.150.0030.08318.19
5.6.140.0070.05018.15
5.6.130.0070.04018.28
5.6.120.0100.04721.13
5.6.110.0030.04320.98
5.6.100.0170.05020.89
5.6.90.0070.08320.99
5.6.80.0030.04720.36
5.6.70.4530.03720.36
5.5.350.0100.06720.33
5.5.340.0000.04318.05
5.5.330.0100.07020.43
5.5.320.0470.06020.20
5.5.310.0170.04020.31
5.5.300.0030.04017.97
5.5.290.0030.06018.06
5.5.280.0130.08320.79
5.5.270.0200.07020.80
5.5.260.0100.03320.80
5.5.250.0100.03720.50
5.5.240.4000.04320.27
5.4.450.0170.04319.49
5.4.440.0400.04319.39
5.4.430.0270.03319.55
5.4.420.0200.05719.54
5.4.410.0370.04319.18
5.4.400.0470.03319.07
5.4.390.0700.03719.20
5.4.380.0530.07018.59
5.4.370.0300.08718.63
5.4.360.0400.07018.72
5.4.350.0330.06318.70
5.4.340.0470.05018.79
5.4.320.0100.03812.51
5.4.310.0050.04012.50
5.4.300.0090.03412.50
5.4.290.0090.03812.50
5.4.280.0040.03812.39
5.4.270.0050.03812.39
5.4.260.0070.03712.39
5.4.250.0090.03512.39
5.4.240.0060.03912.39
5.4.230.0040.04412.38
5.4.220.0060.03712.39
5.4.210.0060.03612.39
5.4.200.0040.04012.39
5.4.190.0070.03712.39
5.4.180.0120.03512.38
5.4.170.0070.03512.40
5.4.160.0040.03812.39
5.4.150.0050.03712.39
5.4.140.0020.04212.07
5.4.130.0050.03712.06
5.4.120.0050.03712.02
5.4.110.0090.03212.01
5.4.100.0040.03812.01
5.4.90.0030.04112.02
5.4.80.0070.03912.02
5.4.70.0070.03512.01
5.4.60.0090.03312.01
5.4.50.0080.05212.01
5.4.40.0060.04712.00
5.4.30.0040.04111.99
5.4.20.0060.03711.99
5.4.10.0120.03511.99
5.4.00.0080.04011.48
5.3.290.0070.03912.80
5.3.280.0080.04512.71
5.3.270.0080.04112.73
5.3.260.0070.04912.72
5.3.250.0060.04112.72
5.3.240.0090.04012.72
5.3.230.0070.03812.71
5.3.220.0070.03512.68
5.3.210.0050.04212.68
5.3.200.0100.03512.68
5.3.190.0090.03412.68
5.3.180.0090.03412.68
5.3.170.0060.03712.67
5.3.160.0110.04012.67
5.3.150.0070.04212.68
5.3.140.0060.04112.66
5.3.130.0050.03912.66
5.3.120.0060.03812.66
5.3.110.0040.04012.66
5.3.100.0080.03412.13
5.3.90.0050.04212.11
5.3.80.0100.03512.10
5.3.70.0090.04212.10
5.3.60.0060.03812.09
5.3.50.0080.03512.04
5.3.40.0080.04912.04
5.3.30.0040.04112.00
5.3.20.0090.03811.78
5.3.10.0060.05111.74
5.3.00.0120.03311.73
5.2.170.0060.0329.19
5.2.160.0030.0309.19
5.2.150.0090.0269.19
5.2.140.0080.0349.19
5.2.130.0070.0289.15
5.2.120.0080.0269.14
5.2.110.0050.0359.15
5.2.100.0030.0299.14
5.2.90.0070.0269.15
5.2.80.0040.0309.14
5.2.70.0040.0309.14
5.2.60.0050.0299.10
5.2.50.0050.0299.06
5.2.40.0070.0289.04
5.2.30.0020.0329.02
5.2.20.0050.0339.01
5.2.10.0060.0368.93
5.2.00.0090.0358.79
5.1.60.0030.0258.07
5.1.50.0040.0248.07
5.1.40.0040.0258.05
5.1.30.0030.0348.41
5.1.20.0030.0318.43
5.1.10.0070.0238.15
5.1.00.0080.0288.15
5.0.50.0040.0206.63
5.0.40.0050.0196.49
5.0.30.0010.0356.30
5.0.20.0050.0266.27
5.0.10.0030.0206.25
5.0.00.0020.0346.24
4.4.90.0030.0174.78
4.4.80.0000.0184.76
4.4.70.0030.0194.76
4.4.60.0040.0144.75
4.4.50.0040.0144.77
4.4.40.0020.0284.71
4.4.30.0020.0214.76
4.4.20.0060.0164.85
4.4.10.0050.0274.85
4.4.00.0030.0314.75
4.3.110.0030.0154.67
4.3.100.0020.0164.67
4.3.90.0020.0164.64
4.3.80.0060.0254.59
4.3.70.0010.0184.63
4.3.60.0030.0134.63
4.3.50.0020.0164.63
4.3.40.0040.0254.54
4.3.30.0040.0213.29
4.3.20.0020.0183.27
4.3.10.0020.0193.23
4.3.00.0070.02315.90

preferences:
29.61 ms | 403 KiB | 5 Q