3v4l.org

run code in 300+ PHP versions simultaneously
<?php class x { public $a = [ '~.~' => '$this->waa($0);' ]; function p($s) { foreach($this->a as $p => $r) { $s = preg_replace_callback($p, function($m) use ($s, $r){ $c = preg_replace('~\$(\d)~', '$m[$1]', $r); print "\n$c\n"; return eval('return '.$c); }, $s); } return $s; } function waa($t){ return '*'.$t.'*'; } } var_dump((new x)->p('wazup'));

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.0070.01416.74
8.3.50.0110.00416.39
8.3.40.0060.00918.96
8.3.30.0070.01118.90
8.3.20.0080.00020.29
8.3.10.0080.00023.69
8.3.00.0050.00221.90
8.2.180.0180.00016.84
8.2.170.0040.01122.96
8.2.160.0130.00720.43
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00021.06
8.2.120.0040.00426.35
8.2.110.0090.00019.27
8.2.100.0040.00817.97
8.2.90.0000.00819.21
8.2.80.0060.00318.00
8.2.70.0030.00618.00
8.2.60.0030.00617.93
8.2.50.0050.00318.09
8.2.40.0040.00420.42
8.2.30.0000.00719.66
8.2.20.0000.01117.92
8.2.10.0040.00418.05
8.2.00.0040.00418.09
8.1.280.0030.01025.92
8.1.270.0040.00422.24
8.1.260.0080.00028.09
8.1.250.0030.00528.09
8.1.240.0080.00022.05
8.1.230.0110.00018.94
8.1.220.0000.00817.79
8.1.210.0060.00318.77
8.1.200.0030.00717.47
8.1.190.0030.00617.47
8.1.180.0040.00418.10
8.1.170.0000.00918.77
8.1.160.0000.00820.81
8.1.150.0090.00020.65
8.1.140.0080.00019.56
8.1.130.0040.00417.75
8.1.120.0000.00717.60
8.1.110.0030.00617.54
8.1.100.0070.00017.66
8.1.90.0000.00817.63
8.1.80.0000.00717.69
8.1.70.0030.00517.50
8.1.60.0030.00617.64
8.1.50.0000.00817.57
8.1.40.0050.00317.64
8.1.30.0030.00617.86
8.1.20.0030.00617.75
8.1.10.0000.00817.73
8.1.00.0030.00617.67
8.0.300.0000.00718.77
8.0.290.0000.00716.88
8.0.280.0070.00018.52
8.0.270.0000.00717.19
8.0.260.0030.00517.28
8.0.250.0000.00717.12
8.0.240.0000.00716.98
8.0.230.0040.00417.11
8.0.220.0000.00717.06
8.0.210.0080.00017.05
8.0.200.0030.00316.98
8.0.190.0040.00417.12
8.0.180.0000.00717.13
8.0.170.0080.00017.03
8.0.160.0000.00716.98
8.0.150.0000.00716.92
8.0.140.0030.00516.98
8.0.130.0000.00713.44
8.0.120.0080.00017.02
8.0.110.0000.00717.09
8.0.100.0040.00417.12
8.0.90.0000.00717.09
8.0.80.0000.01617.11
8.0.70.0050.00216.92
8.0.60.0000.00817.04
8.0.50.0040.00416.94
8.0.30.0060.01217.16
8.0.20.0150.00817.46
8.0.10.0000.00817.21
8.0.00.0160.00616.92
7.4.330.0020.00216.84
7.4.320.0030.00316.63
7.4.300.0040.00416.82
7.4.290.0000.00716.82
7.4.280.0000.00816.81
7.4.270.0030.00316.82
7.4.260.0000.00816.84
7.4.250.0000.00816.58
7.4.240.0040.00416.64
7.4.230.0040.00416.91
7.4.220.0060.00916.68
7.4.210.0000.01516.76
7.4.200.0000.00716.92
7.4.160.0060.01316.75
7.4.150.0030.01617.40
7.4.140.0080.01417.86
7.4.130.0090.00916.81
7.4.120.0050.01416.69
7.4.110.0060.01116.80
7.4.100.0140.01016.59
7.4.90.0140.00316.80
7.4.80.0140.00219.39
7.4.70.0130.00916.59
7.4.60.0100.00716.66
7.4.50.0070.01016.71
7.4.40.0000.01716.70
7.4.30.0110.01416.68
7.4.00.0060.00914.96
7.3.330.0000.00513.53
7.3.320.0040.00413.60
7.3.310.0070.00016.39
7.3.300.0030.00316.54
7.3.290.0110.00416.53
7.3.280.0100.00916.54
7.3.270.0120.00617.40
7.3.260.0120.00616.47
7.3.250.0100.00916.46
7.3.240.0090.00816.77
7.3.230.0070.01116.79
7.3.210.0060.01216.54
7.3.200.0090.00919.39
7.3.190.0090.01216.80
7.3.180.0080.00816.86
7.3.170.0110.01116.60
7.3.160.0060.01016.62
7.3.120.0070.01114.90
7.3.110.0030.01015.27
7.3.100.0030.01015.04
7.3.90.0080.00814.99
7.3.80.0060.00315.00
7.3.70.0120.00314.63
7.3.60.0070.00715.04
7.3.50.0040.00714.78
7.3.40.0000.01415.09
7.3.30.0030.00614.78
7.3.20.0100.00616.80
7.3.10.0030.01217.06
7.3.00.0080.00616.85
7.2.330.0060.01316.71
7.2.320.0120.00616.91
7.2.310.0060.01017.00
7.2.300.0060.01116.88
7.2.290.0070.01416.87
7.2.240.0030.01315.53
7.2.230.0030.01014.93
7.2.220.0040.00815.18
7.2.210.0110.00315.33
7.2.200.0090.00315.09
7.2.190.0070.00715.48
7.2.180.0030.00914.91
7.2.170.0030.01315.35
7.2.160.0000.01515.14
7.2.150.0070.00716.93
7.2.140.0030.00717.08
7.2.130.0090.00617.02
7.2.120.0070.00717.23
7.2.110.0100.00617.15
7.2.100.0100.00317.33
7.2.90.0030.01017.17
7.2.80.0000.01016.98
7.2.70.0100.00316.93
7.2.60.0050.00616.80
7.2.50.0000.01417.24
7.2.40.0000.01417.01
7.2.30.0000.00917.37
7.2.20.0000.00917.14
7.2.10.0120.00017.12
7.2.00.0020.00918.28
7.1.330.0030.01515.98
7.1.320.0000.01515.82
7.1.310.0040.00415.74
7.1.300.0000.01415.96
7.1.290.0070.00015.96
7.1.280.0060.00316.14
7.1.270.0040.00816.05
7.1.260.0000.01215.95
7.1.250.0030.00915.87
7.1.100.0140.00318.26
7.1.70.0000.00917.22
7.1.60.0080.00419.40
7.1.50.0070.01417.25
7.1.00.0070.07322.42
7.0.200.0040.00716.91
7.0.60.0130.04721.73
7.0.50.0070.07017.89
7.0.40.0130.08320.20
7.0.30.0370.03320.25
7.0.20.0430.06720.33
7.0.10.0200.08020.14
7.0.00.0170.08020.08
5.6.280.0000.03320.88
5.6.210.0100.03720.46
5.6.200.0100.07718.23
5.6.190.0100.04020.39
5.6.180.0230.07720.61
5.6.170.0330.03720.48
5.6.160.0070.04020.55
5.6.150.0070.06318.21
5.6.140.0070.04318.22
5.6.130.0200.05318.12
5.6.120.0100.06321.06
5.6.110.0070.05720.98
5.6.100.0130.06020.90
5.6.90.0070.04321.02
5.6.80.0030.08320.55
5.5.350.4330.04020.48
5.5.340.0070.06718.04
5.5.330.0100.06720.27
5.5.320.0400.03720.34
5.5.310.0230.06020.35
5.5.300.0000.04317.95
5.5.290.0070.03717.97
5.5.280.0130.07720.79
5.5.270.0170.06320.74
5.5.260.0130.07320.77
5.5.250.0070.07720.71
5.5.240.0170.05320.18

preferences:
44.74 ms | 400 KiB | 5 Q