3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foobar { protected $foo; public function getFoo() { return $this->foo; } } $foo = new Foobar(); echo str_replace('Foobar', $foo->getFoo(), 'Foobar')

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)
5.4.380.0170.06718.78
5.4.370.0300.06318.75
5.4.360.0270.06718.77
5.4.350.0270.06318.58
5.4.340.0170.05718.75
5.4.320.0270.07018.41
5.4.310.0200.06018.62
5.4.300.0300.04318.74
5.4.290.0370.06018.66
5.4.280.0300.06318.47
5.4.270.0270.06718.57
5.4.260.0270.06318.71
5.4.250.0200.05018.73
5.4.240.0170.05718.50
5.4.230.0170.05318.76
5.4.220.0230.05718.76
5.4.210.0270.06318.52
5.4.200.0170.05016.63
5.4.190.0200.05018.79
5.4.180.0330.04318.57
5.4.170.0300.04318.61
5.4.160.0170.05018.45
5.4.150.0170.06018.45
5.4.140.0230.06016.30
5.4.130.0170.05316.30
5.4.120.0200.05016.18
5.4.110.0270.04016.31
5.4.100.0270.05016.33
5.4.90.0170.05716.25
5.4.80.0200.04716.18
5.4.70.0170.06016.27
5.4.60.0300.05316.27
5.4.50.0130.05316.14
5.4.40.0130.06016.39
5.4.30.0100.05716.26
5.4.20.0230.05016.23
5.4.10.0130.05316.18
5.4.00.0030.06715.67
5.3.290.0130.06014.70
5.3.280.0170.05714.59
5.3.270.0130.06014.77
5.3.260.0200.05714.73
5.3.250.0370.05014.60
5.3.240.0300.06314.71
5.3.230.0200.06314.80
5.3.220.0270.04314.61
5.3.210.0200.05314.56
5.3.200.0170.05014.75
5.3.190.0170.05714.69
5.3.180.0300.04314.75
5.3.170.0270.06314.60
5.3.160.0130.06714.79
5.3.150.0230.05014.66
5.3.140.0270.04314.60
5.3.130.0170.05714.60
5.3.120.0170.05714.57
5.3.110.0170.06314.66
5.3.100.0200.06014.14
5.3.90.0070.06714.05
5.3.80.0230.05314.14
5.3.70.0230.05014.14
5.3.60.0270.05714.08
5.3.50.0100.06313.97
5.3.40.0230.06014.05
5.3.30.0200.05313.95
5.3.20.0170.06013.72
5.3.10.0270.04313.77
5.3.00.0230.06713.71
5.2.170.0270.04311.19
5.2.160.0200.05311.21
5.2.150.0200.05311.25
5.2.140.0100.06311.24
5.2.130.0170.05311.23
5.2.120.0170.05311.20
5.2.110.0230.05311.24
5.2.100.0070.05711.20
5.2.90.0200.05311.23
5.2.80.0230.05311.22
5.2.70.0230.05311.11
5.2.60.0130.05711.27
5.2.50.0170.04311.14
5.2.40.0200.03311.04
5.2.30.0200.03711.18
5.2.20.0170.05010.98
5.2.10.0130.05311.08
5.2.00.0170.05310.81
5.1.60.0030.05710.02
5.1.50.0070.05310.02
5.1.40.0100.05010.00
5.1.30.0170.04710.37
5.1.20.0200.04710.38
5.1.10.0100.05010.06
5.1.00.0100.04310.19
5.0.50.0100.0278.73
5.0.40.0070.0308.47
5.0.30.0030.0478.26
5.0.20.0070.0308.18
5.0.10.0030.0408.36
5.0.00.0130.0478.34
4.4.90.0070.0306.98
4.4.80.0030.0376.98
4.4.70.0070.0306.98
4.4.60.0000.0376.98
4.4.50.0030.0336.98
4.4.40.0070.0376.98
4.4.30.0030.0276.98
4.4.20.0000.0276.98
4.4.10.0000.0306.98
4.4.00.0070.0376.98
4.3.110.0100.0236.98
4.3.100.0130.0236.98
4.3.90.0100.0276.98
4.3.80.0070.0436.98
4.3.70.0130.0236.98
4.3.60.0030.0306.98
4.3.50.0130.0236.98
4.3.40.0100.0406.98
4.3.30.0070.0276.98
4.3.20.0100.0236.98
4.3.10.0030.0306.98
4.3.00.0030.0237.61

preferences:
141.42 ms | 1394 KiB | 7 Q