3v4l.org

run code in 300+ PHP versions simultaneously
<?php // https://gist.github.com/TazeTSchnitzel/33cf828bfa306b1b1d2187a6de639375 // https://3v4l.org/u0TEq class fnClass { private $obj; public function __construct(&$obj) { $this->obj = &$obj; } public function __call($fn_name, $fn_args) { $this->obj = call_user_func_array($fn_name, $fn_args); return $this; } }; function fn(&$obj) { return new fnClass($obj); }; $nama = 'anovsiradj'; echo $nama, "\n"; fn($nama) ->str_replace('a', '4', $nama) ->str_replace('i', '1', $nama) ->str_replace('o', '0', $nama) ->str_rot13($nama) ->md5($nama); echo $nama;

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.4.20.0030.01319.47
8.4.10.0030.01617.73
8.3.150.0140.00019.02
8.3.140.0060.00917.27
8.3.130.0000.00818.56
8.3.120.0030.00616.92
8.3.110.0050.00517.00
8.3.100.0080.00018.44
8.3.90.0070.00018.50
8.3.80.0030.00618.43
8.3.70.0120.00418.56
8.3.60.0090.00616.50
8.3.50.0100.00921.91
8.3.40.0140.00018.85
8.3.30.0100.00318.79
8.3.20.0000.00720.28
8.3.10.0000.00823.83
8.3.00.0030.00621.93
8.2.270.0120.00618.76
8.2.260.0110.00418.59
8.2.250.0120.00318.11
8.2.240.0130.00717.02
8.2.230.0070.00720.94
8.2.220.0100.00724.06
8.2.210.0040.00426.77
8.2.200.0070.00318.28
8.2.190.0090.00616.58
8.2.180.0070.01516.88
8.2.170.0070.00722.96
8.2.160.0030.01019.29
8.2.150.0030.00524.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0060.00321.05
8.2.110.0070.01019.45
8.2.100.0150.00018.09
8.2.90.0040.00419.10
8.2.80.0050.00317.97
8.2.70.0060.00317.38
8.2.60.0040.00417.88
8.2.50.0070.00218.10
8.2.40.0000.00920.27
8.2.30.0040.00419.05
8.2.20.0050.00217.83
8.2.10.0000.00717.98
8.2.00.0040.00418.04
8.1.310.0040.00418.16
8.1.300.0040.01118.12
8.1.290.0060.00318.88
8.1.280.0060.01325.92
8.1.270.0080.00023.96
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0100.00722.31
8.1.230.0040.00717.45
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.13
8.1.190.0040.00416.98
8.1.180.0060.00318.10
8.1.170.0030.00618.47
8.1.160.0050.00318.71
8.1.150.0030.00319.98
8.1.140.0040.00419.54
8.1.130.0030.00318.88
8.1.120.0030.00417.36
8.1.110.0070.00317.34
8.1.100.0050.00317.17
8.1.90.0040.00417.33
8.1.80.0030.00617.32
8.1.70.0000.00817.31
8.1.60.0050.00317.42
8.1.50.0000.00817.35
8.1.40.0030.00517.36
8.1.30.0070.00017.56
8.1.20.0000.00717.43
8.1.10.0040.00417.43
8.1.00.0050.00217.38
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0000.00718.35
8.0.270.0030.00317.22
8.0.260.0030.00317.18
8.0.250.0040.00416.89
8.0.240.0000.00916.80
8.0.230.0000.00716.90
8.0.220.0040.00416.89
8.0.210.0000.00716.75
8.0.200.0000.00716.95
8.0.190.0040.00416.88
8.0.180.0040.00416.88
8.0.170.0080.00016.94
8.0.160.0030.00516.94
8.0.150.0000.00716.88
8.0.140.0030.00716.88
8.0.130.0030.00313.45
8.0.120.0040.00416.85
8.0.110.0070.00016.73
8.0.100.0070.00016.67
8.0.90.0040.00416.92
8.0.80.0000.01516.78
8.0.70.0070.00016.71
8.0.60.0030.00516.94
8.0.50.0040.00416.85
8.0.30.0080.00916.93
8.0.20.0110.00817.40
8.0.10.0000.00716.75
8.0.00.0100.00716.75
7.4.330.0000.00515.55
7.4.320.0000.00616.35
7.4.300.0060.00016.46
7.4.290.0070.00016.45
7.4.280.0090.00016.36
7.4.270.0000.00716.35
7.4.260.0030.00316.39
7.4.250.0000.00716.25
7.4.240.0000.00716.42
7.4.230.0030.00316.46
7.4.220.0170.00016.25
7.4.210.0140.00716.38
7.4.200.0000.00716.21
7.4.160.0140.01016.39
7.4.150.0100.00717.40
7.4.140.0110.00817.86
7.4.130.0100.00716.38
7.4.120.0130.01216.46
7.4.110.0100.01016.36
7.4.100.0030.01616.22
7.4.90.0160.00416.30
7.4.80.0160.00619.39
7.4.70.0100.00716.46
7.4.60.0160.00316.32
7.4.50.0070.00715.98
7.4.40.0030.01316.60
7.4.30.0120.00616.25
7.4.00.0070.01014.77
7.3.330.0020.00213.25
7.3.320.0030.00213.32
7.3.310.0060.00316.37
7.3.300.0040.00416.33
7.3.290.0090.00516.29
7.3.280.0070.01216.30
7.3.270.0070.01017.40
7.3.260.0110.00816.46
7.3.250.0080.01016.46
7.3.240.0070.00916.45
7.3.230.0100.00716.39
7.3.210.0000.01616.50
7.3.200.0090.01216.74
7.3.190.0120.00416.48
7.3.180.0140.00316.39
7.3.170.0110.00816.47
7.3.160.0140.00316.50
7.2.330.0150.00416.72
7.2.320.0160.00316.66
7.2.310.0130.01016.50
7.2.300.0090.00916.65
7.2.290.0120.00816.78
7.2.60.0100.00316.92
7.1.200.0040.00415.82
7.1.70.0060.00317.16
7.1.60.0060.00617.31
7.1.30.2670.07036.48
7.1.20.2030.06736.40
7.1.10.1970.07020.32
7.1.00.3770.06320.55
7.0.200.0030.00616.88
7.0.170.2100.06020.00
7.0.160.3100.08720.09
7.0.150.3300.08020.01
7.0.140.3600.05019.99
7.0.130.2470.06320.12
7.0.120.3270.06320.02
7.0.110.2830.05320.09
7.0.100.3030.07020.10
7.0.90.3900.07720.03
7.0.80.3870.09020.11
7.0.70.2330.06020.09
7.0.60.2000.05019.98
7.0.50.3130.06320.24
7.0.40.1770.05720.16
7.0.30.2130.05320.12
7.0.20.2330.05720.18
7.0.10.2200.05720.02
7.0.00.2070.05720.02

preferences:
29.51 ms | 403 KiB | 5 Q