3v4l.org

run code in 300+ PHP versions simultaneously
<?php // https://gist.github.com/TazeTSchnitzel/33cf828bfa306b1b1d2187a6de639375 function fn(&$obj) { return new class($obj) { private $obj; public function __construct(&$obj) { $this->obj = &$obj; } public function __call(string $fn_name, array $fn_args):self { $this->obj = $fn_name(...$fn_args); return $this; } }; } $nama = 'anovsiradj'; echo $nama, PHP_EOL; 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.0070.01417.54
8.4.10.0090.00019.39
8.3.150.0120.00616.58
8.3.140.0050.00318.81
8.3.130.0090.00918.42
8.3.120.0100.00719.07
8.3.110.0030.00616.58
8.3.100.0030.00616.91
8.3.90.0040.00416.76
8.3.80.0090.00317.97
8.3.70.0110.00418.43
8.3.60.0050.01016.37
8.3.50.0120.00621.92
8.3.40.0120.00918.60
8.3.30.0000.01418.71
8.3.20.0080.00022.27
8.3.10.0070.00020.26
8.3.00.0080.00023.45
8.2.270.0030.00516.91
8.2.260.0120.00616.63
8.2.250.0000.00816.49
8.2.240.0110.00818.28
8.2.230.0030.00520.94
8.2.220.0040.01224.06
8.2.210.0100.01026.77
8.2.200.0070.00316.38
8.2.190.0070.01016.58
8.2.180.0090.00616.50
8.2.170.0120.00322.96
8.2.160.0110.00320.40
8.2.150.0090.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00822.29
8.2.120.0080.00026.16
8.2.110.0000.00821.18
8.2.100.0030.01017.95
8.2.90.0040.00419.11
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0070.00317.80
8.2.50.0040.00418.10
8.2.40.0080.00020.60
8.2.30.0070.00020.29
8.2.20.0000.00817.95
8.2.10.0040.00418.02
8.2.00.0070.00018.01
8.1.310.0070.01018.11
8.1.300.0140.00318.55
8.1.290.0030.00630.84
8.1.280.0060.01225.92
8.1.270.0040.00423.85
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0080.00022.14
8.1.230.0040.00819.48
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0070.00317.10
8.1.190.0070.00317.23
8.1.180.0000.00918.10
8.1.170.0000.00718.53
8.1.160.0000.00818.82
8.1.150.0030.00320.25
8.1.140.0040.00419.43
8.1.130.0000.00719.04
8.1.120.0000.00717.29
8.1.110.0040.00417.30
8.1.100.0000.00817.29
8.1.90.0040.00417.15
8.1.80.0030.00317.38
8.1.70.0030.00317.20
8.1.60.0000.00717.45
8.1.50.0040.00417.25
8.1.40.0060.00317.25
8.1.30.0040.00417.50
8.1.20.0000.00817.45
8.1.10.0000.00717.38
8.1.00.0040.00417.26
8.0.300.0030.00518.77
8.0.290.0070.00016.63
8.0.280.0030.00318.27
8.0.270.0030.00317.16
8.0.260.0000.00617.11
8.0.250.0050.00316.85
8.0.240.0030.00316.93
8.0.230.0040.00416.99
8.0.220.0030.00316.73
8.0.210.0000.00716.88
8.0.200.0030.00316.91
8.0.190.0040.00416.96
8.0.180.0050.00216.94
8.0.170.0080.00016.76
8.0.160.0030.00316.91
8.0.150.0050.00316.84
8.0.140.0070.00016.89
8.0.130.0030.00313.46
8.0.120.0070.00016.94
8.0.110.0000.00816.65
8.0.100.0070.00016.90
8.0.90.0040.00416.76
8.0.80.0080.00716.87
8.0.70.0070.00016.76
8.0.60.0040.00416.76
8.0.50.0040.00416.81
8.0.30.0080.00916.90
8.0.20.0140.00717.40
8.0.10.0040.00416.97
8.0.00.0100.00716.87
7.4.330.0030.00315.55
7.4.320.0000.00716.36
7.4.300.0000.00616.38
7.4.290.0000.00716.27
7.4.280.0070.00016.49
7.4.270.0030.00316.46
7.4.260.0000.00816.43
7.4.250.0000.00616.37
7.4.240.0000.00716.33
7.4.230.0030.00316.54
7.4.220.0080.00816.44
7.4.210.0060.00916.37
7.4.200.0040.00416.25
7.4.160.0130.00616.34
7.4.150.0070.01017.40
7.4.140.0160.00917.86
7.4.130.0110.00616.30
7.4.120.0140.00716.43
7.4.110.0120.00316.12
7.4.100.0060.01216.21
7.4.90.0090.00616.25
7.4.80.0050.01119.39
7.4.70.0160.00616.37
7.4.60.0130.00616.37
7.4.50.0090.00616.24
7.4.40.0080.00816.20
7.4.30.0100.01316.36
7.4.00.0100.00314.80
7.3.330.0070.00013.28
7.3.320.0000.00613.32
7.3.310.0030.00616.40
7.3.300.0000.00616.16
7.3.290.0000.00716.18
7.3.280.0100.00816.29
7.3.270.0150.01117.40
7.3.260.0080.01216.43
7.3.250.0110.00616.53
7.3.240.0120.00516.44
7.3.230.0060.01316.39
7.3.210.0100.00716.65
7.3.200.0130.00316.25
7.3.190.0060.01016.40
7.3.180.0070.01016.24
7.3.170.0060.01016.62
7.3.160.0100.00716.72
7.2.330.0100.01316.81
7.2.320.0030.02016.52
7.2.310.0100.00716.82
7.2.300.0070.01016.60
7.2.290.0050.01916.61
7.2.60.0030.00916.85
7.2.00.0030.01019.55
7.1.200.0030.00315.87
7.1.100.0140.00418.32
7.1.70.0090.00317.02
7.1.60.0030.00717.41
7.1.50.0120.01216.96
7.1.30.0280.07038.22
7.1.20.0200.09038.29
7.1.10.0100.06722.30
7.1.00.0000.09322.32
7.0.200.0040.00816.52
7.0.170.0070.06021.88
7.0.160.0100.06021.82
7.0.150.0200.05321.91
7.0.140.0130.06021.81
7.0.130.0130.05021.87
7.0.120.0130.06021.91
7.0.110.0130.06021.77
7.0.100.0100.06021.79
7.0.90.0070.06721.92
7.0.80.0070.07021.94
7.0.70.0170.06721.88
7.0.60.0100.06721.83
7.0.50.0170.05021.82
7.0.40.0200.06321.87
7.0.30.0100.07321.93
7.0.20.0130.05721.77
7.0.10.0070.06021.83
7.0.00.0030.06021.81

preferences:
32.89 ms | 403 KiB | 5 Q