3v4l.org

run code in 300+ PHP versions simultaneously
<?php class myProcess { function __construct($sameArray){ $mySentence = json_encode($sameArray); $mySentence = preg_replace('/o/','t',$mySentence); $otherArray = json_decode($mySentence); print($otherArray); //this is line 45 //print($mySentence); //$placements = array ("John" => "Jose", "Smith" => "Tobar"); // preg_replace("/:(\w+)/e", $placements[$1], $mySentence); } } ?>

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.40.0130.00718.67
8.3.30.0140.00018.91
8.3.20.0040.00420.20
8.3.10.0040.00423.38
8.3.00.0030.00617.38
8.2.170.0120.00422.96
8.2.160.0100.00320.52
8.2.150.0070.00024.18
8.2.140.0050.00324.66
8.2.130.0100.01026.16
8.2.120.0000.00722.20
8.2.110.0060.00322.19
8.2.100.0060.00617.78
8.2.90.0040.00419.00
8.2.80.0060.00317.97
8.2.70.0000.01217.23
8.2.60.0050.00317.91
8.2.50.0000.00818.07
8.2.40.0050.00218.03
8.2.30.0050.00317.88
8.2.20.0050.00317.42
8.2.10.0080.00017.86
8.2.00.0090.00317.48
8.1.270.0030.00622.19
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00423.96
8.1.230.0080.00419.16
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0000.01017.10
8.1.190.0080.00017.41
8.1.180.0040.00418.10
8.1.170.0050.00318.59
8.1.160.0040.00421.93
8.1.150.0000.00718.54
8.1.140.0000.00817.31
8.1.130.0030.00317.75
8.1.120.0040.00417.34
8.1.110.0000.00817.26
8.1.100.0070.00017.33
8.1.90.0030.00517.36
8.1.80.0000.00717.39
8.1.70.0040.00417.25
8.1.60.0030.00617.43
8.1.50.0000.00817.26
8.1.40.0030.00517.38
8.1.30.0080.00017.48
8.1.20.0060.00317.41
8.1.10.0000.00717.28
8.1.00.0000.00717.30
8.0.300.0040.00418.77
8.0.290.0070.00017.05
8.0.280.0040.00418.34
8.0.270.0000.00717.03
8.0.260.0030.00317.02
8.0.250.0000.00716.70
8.0.240.0070.00416.71
8.0.230.0030.00316.83
8.0.220.0070.00016.72
8.0.210.0070.00016.64
8.0.200.0040.00416.80
8.0.190.0040.00416.86
8.0.180.0040.00416.77
8.0.170.0040.00416.73
8.0.160.0040.00416.83
8.0.150.0040.00416.72
8.0.140.0040.00416.64
8.0.130.0080.00013.27
8.0.120.0000.00816.57
8.0.110.0050.00316.70
8.0.100.0040.00416.77
8.0.90.0040.00416.63
8.0.80.0080.00616.75
8.0.70.0040.00416.71
8.0.60.0040.00416.61
8.0.50.0040.00416.62
8.0.30.0110.00716.76
8.0.20.0110.00717.40
8.0.10.0030.00516.78
8.0.00.0090.00816.47
7.4.330.0020.00215.03
7.4.320.0000.00616.52
7.4.300.0030.00316.47
7.4.290.0000.00716.35
7.4.280.0000.00716.35
7.4.270.0030.00516.44
7.4.260.0090.00016.38
7.4.250.0000.00716.34
7.4.240.0020.00516.39
7.4.230.0020.00516.42
7.4.220.0130.01216.42
7.4.210.0060.00816.36
7.4.200.0040.00416.30
7.4.190.0000.00716.32
7.4.160.0000.01616.38
7.4.150.0160.00817.40
7.4.140.0140.00517.86
7.4.130.0070.00916.29
7.4.120.0070.00916.48
7.4.110.0130.00716.50
7.4.100.0090.01516.32
7.4.90.0090.00816.39
7.4.80.0150.00319.39
7.4.70.0130.00316.39
7.4.60.0150.00316.36
7.4.50.0000.00716.36
7.4.40.0070.01122.77
7.4.30.0120.00616.46
7.4.00.0090.00714.66
7.3.330.0000.00513.04
7.3.320.0050.00013.00
7.3.310.0080.00016.20
7.3.300.0000.00616.21
7.3.290.0040.01116.11
7.3.280.0100.00516.15
7.3.270.0090.01017.40
7.3.260.0090.00916.24
7.3.250.0060.01416.30
7.3.240.0080.00816.19
7.3.230.0130.00316.39
7.3.210.0000.01616.21
7.3.200.0110.00519.39
7.3.190.0150.00316.17
7.3.180.0040.01316.29
7.3.170.0080.00816.39
7.3.160.0100.01016.25
7.3.120.0040.00914.79
7.3.110.0070.01114.46
7.3.100.0070.00714.43
7.3.90.0030.00914.78
7.3.80.0060.00614.63
7.3.70.0040.01114.59
7.3.60.0070.00714.53
7.3.50.0040.01114.67
7.3.40.0120.00414.85
7.3.30.0060.00914.58
7.3.20.0030.01016.43
7.3.10.0030.00716.54
7.3.00.0040.01116.57
7.2.330.0070.01116.24
7.2.320.0120.00316.55
7.2.310.0120.00616.20
7.2.300.0100.00716.54
7.2.290.0160.00616.44
7.2.250.0100.01015.00
7.2.240.0070.01014.91
7.2.230.0030.01214.77
7.2.220.0090.00614.89
7.2.210.0040.00814.90
7.2.200.0060.00914.88
7.2.190.0060.00914.88
7.2.180.0090.00614.64
7.2.170.0000.01614.76
7.2.00.0040.01219.21
7.1.330.0040.01015.73
7.1.320.0090.00615.68
7.1.310.0000.01415.74
7.1.300.0090.00615.48
7.1.290.0100.00315.73
7.1.280.0030.01015.70
7.1.270.0040.01115.55
7.1.260.0070.00715.80
7.1.100.0000.01518.03
7.1.70.0000.02217.04
7.1.60.0110.01419.33
7.1.50.0250.00334.61
7.1.00.0000.08022.45
7.0.200.0050.00216.78
7.0.140.0000.07722.09
7.0.90.0530.05020.11
7.0.80.0570.08719.92
7.0.70.0430.06019.79
7.0.60.0430.07719.95
7.0.50.0670.07320.35
7.0.40.0130.06020.07
7.0.30.0130.08320.18
7.0.20.0130.06720.19
7.0.10.0070.08720.09
7.0.00.0100.05320.17
5.6.280.0130.06320.93
5.6.230.0130.07020.61
5.6.220.0170.07720.53
5.6.210.0070.05020.51
5.6.200.0070.09020.95
5.6.190.0070.08320.91
5.6.180.0170.07021.05
5.6.170.0100.07721.13
5.6.160.0130.07720.93
5.6.150.0130.07321.05
5.6.140.0030.04321.05
5.6.130.0130.07721.11
5.6.120.0100.04721.17
5.6.110.0000.07721.01
5.6.100.0030.04720.95
5.6.90.0070.08320.92
5.6.80.0070.05320.39
5.6.70.0100.07320.44
5.6.60.0130.07320.50
5.6.50.0200.06320.34
5.6.40.0130.06720.54
5.6.30.0070.07020.46
5.6.20.0070.05320.36
5.6.10.0100.08020.39
5.6.00.0100.06020.48
5.5.370.0030.08720.30
5.5.360.0100.07720.46
5.5.350.0030.08720.38
5.5.340.0070.08320.90
5.5.330.0100.07720.73
5.5.320.0170.05720.80
5.5.310.0030.04720.93
5.5.300.0070.05320.89
5.5.290.0070.08720.90
5.5.280.0100.07320.64
5.5.270.0130.04720.88
5.5.260.0000.06720.63
5.5.250.0170.06320.54
5.5.240.0130.07020.22
5.5.230.0030.06320.23
5.5.220.0170.07020.25
5.5.210.0130.07020.11
5.5.200.0070.08020.18
5.5.190.0130.07020.12
5.5.180.0100.08020.08
5.5.160.0100.04020.13
5.5.150.0030.07020.21
5.5.140.0030.04020.12
5.5.130.0070.05720.27
5.5.120.0000.04320.17
5.5.110.0030.04020.27
5.5.100.0030.03720.17
5.5.90.0000.04020.06
5.5.80.0070.03320.10
5.5.70.0000.04320.15
5.5.60.0000.03719.95
5.5.50.0000.05719.96
5.5.40.0000.03720.05
5.5.30.0070.03320.04
5.5.20.0000.04020.04
5.5.10.0030.04020.02
5.5.00.0030.03720.05
5.4.450.0070.06019.51
5.4.440.0070.07719.50
5.4.430.0070.07719.35
5.4.420.0070.04719.41
5.4.410.0030.08719.22
5.4.400.0100.07019.03
5.4.390.0070.07718.85
5.4.380.0130.07019.03
5.4.370.0030.07718.87
5.4.360.0130.07319.21
5.4.350.0030.08019.12
5.4.340.0130.07018.88
5.4.320.0030.03719.05
5.4.310.0030.05019.13
5.4.300.0000.04719.23
5.4.290.0070.07019.11
5.4.280.0070.04019.13
5.4.270.0000.04019.12
5.4.260.0070.07319.12
5.4.250.0070.04018.94
5.4.240.0030.03719.11
5.4.230.0100.03019.04
5.4.220.0030.04018.90
5.4.210.0170.06019.12
5.4.200.0000.04019.23
5.4.190.0000.03719.15
5.4.180.0070.04319.21
5.4.170.0000.04019.02
5.4.160.0030.03719.06
5.4.150.0070.06319.02
5.4.140.0130.04316.20
5.4.130.0030.03316.19
5.4.120.0000.03316.36
5.4.110.0030.03316.47
5.4.100.0030.04316.27
5.4.90.0030.03716.51
5.4.80.0000.03316.35
5.4.70.0070.04316.38
5.4.60.0000.04016.36
5.4.50.0200.06016.44
5.4.40.0000.03716.54
5.4.30.0030.06316.47
5.4.20.0070.02716.40
5.4.10.0030.03716.44
5.4.00.0000.03715.70
5.3.290.0070.06014.63
5.3.280.0030.03714.71
5.3.270.0000.04014.74
5.3.260.0070.03014.65
5.3.250.0100.05714.65
5.3.240.0030.03714.55
5.3.230.0100.03014.66
5.3.220.0000.04014.52
5.3.210.0030.03714.49
5.3.200.0030.03314.54
5.3.190.0070.02714.54
5.3.180.0070.04714.61
5.3.170.0030.04314.68
5.3.160.0030.04014.51
5.3.150.0130.03014.68
5.3.140.0070.03314.50
5.3.130.0030.03314.53
5.3.120.0070.03314.49
5.3.110.0070.08014.47
5.3.100.0000.05014.04
5.3.90.0070.03314.06
5.3.80.0000.05014.15
5.3.70.0030.03713.90
5.3.60.0000.04313.90
5.3.50.0100.03013.87
5.3.40.0130.02713.97
5.3.30.0100.07013.80
5.3.20.0070.06713.82
5.3.10.0030.03313.63
5.3.00.0130.02013.77
5.2.170.0030.04011.05
5.2.160.0000.03011.25
5.2.150.0000.03011.23
5.2.140.0000.03011.13
5.2.130.0030.02711.11
5.2.120.0070.02311.04
5.2.110.0030.02311.00
5.2.100.0070.06011.20
5.2.90.0070.05711.20
5.2.80.0070.06311.08
5.2.70.0000.05311.02
5.2.60.0030.05711.18
5.2.50.0000.05711.15
5.2.40.0100.06010.88
5.2.30.0070.05711.11
5.2.20.0070.04011.06
5.2.10.0030.06310.73
5.2.00.0030.05310.76
5.1.60.0100.04710.11
5.1.50.0070.04310.06
5.1.40.0070.04310.04
5.1.30.0070.03710.36
5.1.20.0030.06310.45
5.1.10.0100.03310.13
5.1.00.0100.03010.16
5.0.50.0070.0439.32
5.0.40.0070.0379.32
5.0.30.0000.0679.32
5.0.20.0100.0209.32
5.0.10.0070.0309.32
5.0.00.0030.0679.32
4.4.90.0030.0339.32
4.4.80.0000.0409.32
4.4.70.0000.0379.32
4.4.60.0000.0379.32
4.4.50.0000.0239.32
4.4.40.0070.0509.32
4.4.30.0030.0379.32
4.4.20.0030.0279.32
4.4.10.0030.0239.32
4.4.00.0000.0409.32
4.3.110.0000.0379.32
4.3.100.0000.0279.32
4.3.90.0030.0239.32
4.3.80.0070.0509.32
4.3.70.0000.0379.32
4.3.60.0000.0309.32
4.3.50.0000.0379.32
4.3.40.0000.0479.32
4.3.30.0000.0239.32
4.3.20.0070.0309.32
4.3.10.0000.0379.32
4.3.00.0000.0309.32

preferences:
40.39 ms | 400 KiB | 5 Q