3v4l.org

run code in 300+ PHP versions simultaneously
<?php $msg=$_GET['msg']??"no msg!"; file_put_contents('msg.log.txt',$msg."\r\n",FILE_APPEND|LOCK_EX); $matches=NULL; $isMatch=preg_match("/\d+\s*(?:\+|\-|\*|\/|\:)\s*\d+/",$msg,$matches); if($isMatch){ $matches[0]=strtr($matches[0],array(':'=>'/')); //var_dump($matches) & die(); $res=eval("return (".$matches[0].");"); // var_dump($res); echo "!check {$res}"; }

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.0100.00718.67
8.3.50.0150.00318.15
8.3.40.0070.00718.91
8.3.30.0120.00618.92
8.3.20.0040.00421.65
8.3.10.0040.00420.91
8.3.00.0030.00518.00
8.2.180.0120.00617.13
8.2.170.0150.00322.96
8.2.160.0100.00322.12
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00418.21
8.2.120.0090.00026.35
8.2.110.0120.00021.16
8.2.100.0060.00618.09
8.2.90.0050.00218.16
8.2.80.0040.00417.97
8.2.70.0040.00418.05
8.2.60.0070.00018.22
8.2.50.0000.00818.10
8.2.40.0000.00921.15
8.2.30.0040.00419.34
8.2.20.0040.00418.22
8.2.10.0070.00019.28
8.2.00.0050.00218.14
8.1.280.0060.00925.92
8.1.270.0000.00820.43
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0030.00622.51
8.1.230.0090.00320.93
8.1.220.0040.00417.75
8.1.210.0000.00818.97
8.1.200.0000.00817.48
8.1.190.0040.00417.38
8.1.180.0080.00018.10
8.1.170.0050.00318.71
8.1.160.0080.00018.89
8.1.150.0000.00818.84
8.1.140.0040.00418.93
8.1.130.0050.00222.00
8.1.120.0000.00717.52
8.1.110.0080.00317.68
8.1.100.0040.00417.61
8.1.90.0140.00017.51
8.1.80.0000.00817.58
8.1.70.0000.00717.59
8.1.60.0100.00317.75
8.1.50.0080.00017.70
8.1.40.0050.00517.70
8.1.30.0040.00417.75
8.1.20.0040.00417.68
8.1.10.0060.00317.73
8.1.00.0030.00617.61
8.0.300.0030.00319.90
8.0.290.0070.00017.00
8.0.280.0070.00018.52
8.0.270.0030.00317.21
8.0.260.0040.00418.47
8.0.250.0080.00017.16
8.0.240.0030.00317.17
8.0.230.0000.00717.15
8.0.220.0000.00716.98
8.0.210.0000.00717.11
8.0.200.0000.00717.07
8.0.190.0040.00417.09
8.0.180.0040.00417.18
8.0.170.0000.00917.14
8.0.160.0070.00017.01
8.0.150.0000.00717.02
8.0.140.0040.00417.00
8.0.130.0050.00013.46
8.0.120.0000.00817.05
8.0.110.0040.00417.22
8.0.100.0000.00716.95
8.0.90.0000.00717.00
8.0.80.0050.01517.14
8.0.70.0000.00817.02
8.0.60.0040.00417.11
8.0.50.0020.00517.18
8.0.30.0090.00917.39
8.0.20.0090.01017.40
8.0.10.0000.00717.14
8.0.00.0090.01216.90
7.4.330.0050.00015.55
7.4.320.0000.00716.73
7.4.300.0030.00316.73
7.4.290.0070.00016.79
7.4.280.0090.00016.74
7.4.270.0070.00016.83
7.4.260.0080.00016.66
7.4.250.0000.00716.65
7.4.240.0000.00816.74
7.4.230.0060.00316.81
7.4.220.0060.00316.74
7.4.210.0070.01016.75
7.4.200.0000.00716.87
7.4.160.0110.00616.75
7.4.140.0090.00917.86
7.4.130.0100.01316.78
7.4.120.0090.01216.68
7.4.110.0080.01116.86
7.4.100.0030.01716.77
7.4.90.0110.00616.91
7.4.80.0130.01019.39
7.4.70.0100.01616.78
7.4.60.0090.00916.65
7.4.50.0120.00316.86
7.4.40.0060.01116.89
7.4.00.0070.00714.98
7.3.330.0070.00013.30
7.3.320.0000.00513.38
7.3.310.0020.00516.52
7.3.300.0070.00016.47
7.3.290.0030.00616.58
7.3.280.0090.00716.49
7.3.260.0130.00716.64
7.3.240.0100.01016.75
7.3.230.0100.00616.61
7.3.210.0130.00916.78
7.3.200.0110.01116.45
7.3.190.0050.01316.67
7.3.180.0180.00616.73
7.3.170.0070.01016.61
7.3.160.0110.00516.61
7.3.10.0090.00615.13
7.3.00.0690.00015.01
7.2.330.0000.01816.74
7.2.320.0070.01016.91
7.2.310.0100.00716.63
7.2.300.0070.01016.73
7.2.290.0030.01216.70
7.2.130.0130.01315.11
7.2.120.1240.00715.09
7.2.110.0620.00714.84
7.2.100.0560.00315.02
7.2.90.0500.00414.88
7.2.80.0520.01015.35
7.2.70.0490.00015.46
7.2.60.0450.00314.92
7.2.50.0580.00315.00
7.2.40.0590.00715.02
7.2.30.0750.00415.25
7.2.20.0860.00615.07
7.2.10.0650.00314.89
7.2.00.0670.00715.29
7.1.250.0470.00313.86

preferences:
51.22 ms | 400 KiB | 5 Q