3v4l.org

run code in 300+ PHP versions simultaneously
<?php function e($o){return json_decode(preg_replace('/\\\u0000[*a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*\\\u0000/','',json_encode((array)$o)),1);} class Foo { public $bar = 'barValue'; protected $baz = 'bazValue'; private $biz = 'bizValue'; } $foo = new Foo(); $foo->bla = new StdClass(); $foo->bla->cheese = 'stilton'; var_dump(e($foo));

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.0120.00918.78
8.3.30.0070.00718.82
8.3.20.0040.00419.00
8.3.10.0040.00421.09
8.3.00.0040.00423.61
8.2.170.0060.00922.96
8.2.160.0110.00420.18
8.2.150.0040.00424.18
8.2.140.0110.00824.66
8.2.130.0030.00526.16
8.2.120.0050.00321.09
8.2.110.0050.00519.45
8.2.100.0110.00017.84
8.2.90.0030.00619.22
8.2.80.0090.00017.97
8.2.70.0000.00817.48
8.2.60.0080.00017.80
8.2.50.0040.00418.10
8.2.40.0040.00418.07
8.2.30.0040.00419.49
8.2.20.0070.00017.63
8.2.10.0000.00817.78
8.2.00.0080.00017.82
8.1.270.0040.00423.99
8.1.260.0120.00626.35
8.1.250.0080.00028.09
8.1.240.0140.00722.54
8.1.230.0070.00722.81
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0000.00817.48
8.1.190.0090.00017.23
8.1.180.0080.00018.10
8.1.170.0080.00018.67
8.1.160.0040.00418.76
8.1.150.0070.00018.75
8.1.140.0030.00517.46
8.1.130.0030.00517.77
8.1.120.0000.00717.57
8.1.110.0000.01017.58
8.1.100.0000.00717.45
8.1.90.0000.00817.52
8.1.80.0000.00717.48
8.1.70.0030.00317.61
8.1.60.0000.00917.78
8.1.50.0040.00417.68
8.1.40.0000.00917.66
8.1.30.0030.00617.67
8.1.20.0090.00017.83
8.1.10.0040.00417.68
8.1.00.0040.00417.62
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.42
8.0.270.0070.00017.23
8.0.260.0000.00816.82
8.0.250.0050.00317.04
8.0.240.0060.00316.93
8.0.230.0040.00417.05
8.0.220.0000.01116.93
8.0.210.0070.00016.88
8.0.200.0000.00716.98
8.0.190.0050.00216.98
8.0.180.0000.00816.90
8.0.170.0000.00717.01
8.0.160.0070.00016.91
8.0.150.0050.00216.97
8.0.140.0040.00417.00
8.0.130.0060.00013.45
8.0.120.0080.00016.91
8.0.110.0040.00417.00
8.0.100.0000.00716.97
8.0.90.0000.00717.05
8.0.80.0060.00916.98
8.0.70.0040.00417.07
8.0.60.0030.00516.98
8.0.50.0070.00016.96
8.0.30.0100.01317.11
8.0.20.0110.00817.45
8.0.10.0030.00517.01
8.0.00.0100.00916.81
7.4.330.0000.00616.85
7.4.320.0060.00016.79
7.4.300.0030.00316.73
7.4.290.0030.00316.72
7.4.280.0080.00016.76
7.4.270.0000.00716.83
7.4.260.0030.00313.48
7.4.250.0000.00916.54
7.4.240.0070.00016.78
7.4.230.0040.00416.63
7.4.220.0060.01416.75
7.4.210.0080.00816.84
7.4.200.0000.00816.57
7.4.190.0040.00416.78
7.4.160.0070.01016.70
7.4.150.0070.01117.40
7.4.140.0090.00917.86
7.4.130.0030.01716.77
7.4.120.0090.00816.67
7.4.110.0150.00316.64
7.4.100.0060.01716.81
7.4.90.0060.01216.53
7.4.80.0160.00919.39
7.4.70.0050.01116.64
7.4.60.0100.00716.85
7.4.50.0060.00316.59
7.4.40.0000.01122.77
7.4.30.0140.00716.68
7.4.00.0120.00615.11
7.3.330.0000.00613.48
7.3.320.0030.00413.46
7.3.310.0040.00416.37
7.3.300.0000.00716.46
7.3.290.0100.00716.48
7.3.280.0090.01016.47
7.3.270.0130.00417.40
7.3.260.0100.01418.24
7.3.250.0060.01216.60
7.3.240.0070.01116.66
7.3.230.0120.00616.54
7.3.210.0060.01316.70
7.3.200.0100.01419.39
7.3.190.0100.01316.69
7.3.180.0090.00616.45
7.3.170.0060.00916.43
7.3.160.0030.01616.57
7.3.120.0070.01214.94
7.3.110.0110.01115.05
7.3.100.0100.00715.23
7.3.90.0050.00814.90
7.3.80.0000.01414.98
7.3.70.0070.00715.12
7.3.60.0070.00714.68
7.3.50.0070.00715.16
7.3.40.0000.01415.00
7.3.30.0030.01014.93
7.3.20.0090.00916.98
7.3.10.0040.00816.71
7.3.00.0030.00916.60
7.2.330.0040.01416.81
7.2.320.0160.00616.98
7.2.310.0060.01216.80
7.2.300.0070.01016.85
7.2.290.0070.01016.89
7.2.250.0040.01515.00
7.2.240.0070.01014.91
7.2.230.0060.00915.14
7.2.220.0150.00314.93
7.2.210.0120.00815.14
7.2.200.0100.00715.04
7.2.190.0000.01215.23
7.2.180.0060.00615.15
7.2.170.0070.01015.10
7.2.160.0090.00915.21
7.2.150.0060.00917.08
7.2.140.0030.01017.04
7.2.130.0120.00417.21
7.2.120.0090.00317.28
7.2.110.0100.00717.09
7.2.100.0070.00717.23
7.2.90.0060.00617.16
7.2.80.0030.00917.00
7.2.70.0070.01016.76
7.2.60.0100.00717.23
7.2.50.0000.01417.21
7.2.40.0060.00617.24
7.2.30.0060.01017.20
7.2.20.0090.00617.21
7.2.10.0070.01017.07
7.2.00.0060.00617.04
7.1.330.0030.01016.13
7.1.320.0070.00715.86
7.1.310.0030.01215.99
7.1.300.0000.01415.80
7.1.290.0080.00815.88
7.1.280.0040.00915.83
7.1.270.0040.01015.72
7.1.260.0000.01315.98
7.1.250.0040.00815.60
7.1.240.0060.00915.72
7.1.230.0070.01015.96
7.1.220.0070.00415.98
7.1.210.0070.00415.76
7.1.200.0130.00315.92
7.1.190.0000.01616.11
7.1.180.0080.00816.03
7.1.170.0040.00815.86
7.1.160.0030.00615.84
7.1.150.0090.00615.98
7.1.140.0040.00415.70
7.1.130.0080.00316.00
7.1.120.0030.00815.72
7.1.110.0030.00815.74
7.1.100.0060.00615.75
7.1.90.0000.01515.98
7.1.80.0080.00415.75
7.1.70.0050.00516.73
7.1.60.0030.00816.63
7.1.50.0020.01216.33
7.1.40.0090.00616.00
7.1.30.0080.00415.91
7.1.20.0000.01115.95
7.1.10.0060.00615.96
7.1.00.0040.04119.22
7.0.330.0070.00415.46
7.0.320.0000.01515.70
7.0.310.0100.00315.71
7.0.300.0000.01415.69
7.0.290.0000.01115.71
7.0.280.0070.00315.63
7.0.270.0030.01015.41
7.0.260.0100.00015.61
7.0.250.0030.01015.70
7.0.240.0090.00615.75
7.0.230.0000.01315.67
7.0.220.0060.00615.51
7.0.210.0040.01115.49
7.0.200.0020.01416.08
7.0.190.0030.00715.50
7.0.180.0110.00415.55
7.0.170.0060.00615.57
7.0.160.0000.01215.53
7.0.150.0000.00815.36
7.0.140.0030.04218.78
7.0.130.0070.00315.70
7.0.120.0060.00615.56
7.0.110.0060.00315.64
7.0.100.0060.00815.68
7.0.90.0240.03817.84
7.0.80.0080.02817.66
7.0.70.0070.02417.79
7.0.60.0230.04117.70
7.0.50.0110.02617.88
7.0.40.0030.03016.77
7.0.30.0080.02316.96
7.0.20.0100.03016.86
7.0.10.0050.02916.84
7.0.00.0050.04516.94
5.6.400.0080.00614.16
5.6.390.0090.00614.65
5.6.380.0080.00814.67
5.6.370.0120.00414.75
5.6.360.0030.01014.79
5.6.350.0070.00314.76
5.6.340.0030.01014.66
5.6.330.0090.00614.47
5.6.320.0030.01014.42
5.6.310.0040.01014.52
5.6.300.0030.01014.84
5.6.290.0070.00714.17
5.6.280.0080.03517.84
5.6.270.0070.00714.43
5.6.260.0100.00014.56
5.6.250.0050.00814.43
5.6.240.0050.03017.62
5.6.230.0060.03517.69
5.6.220.0070.02417.51
5.6.210.0100.02517.59
5.6.200.0060.02317.77
5.6.190.0070.04417.69
5.6.180.0020.02617.74
5.6.170.0050.04317.91
5.6.160.0070.02517.80
5.6.150.0080.02717.76
5.6.140.0070.03717.67
5.6.130.0030.02817.65
5.6.120.0110.03817.64
5.6.110.0050.04517.71
5.6.100.0100.03317.83
5.6.90.0020.04117.76
5.6.80.0080.03817.31
5.6.70.0140.03617.41
5.6.60.0050.02817.36
5.6.50.0050.04117.43
5.6.40.0090.03517.45
5.6.30.0060.02417.56
5.6.20.0060.02817.39
5.6.10.0080.02517.35
5.6.00.0040.02917.54
5.5.380.0080.04317.30
5.5.370.0050.02217.42
5.5.360.0080.03617.42
5.5.350.0060.02617.33
5.5.340.0050.02517.58
5.5.330.0050.03717.80
5.5.320.0050.02217.58
5.5.310.0030.04817.68
5.5.300.0050.03017.73
5.5.290.0080.02617.60
5.5.280.0110.04017.75
5.5.270.0040.03217.73
5.5.260.0080.03117.51
5.5.250.0030.04617.47
5.5.240.0090.04017.17
5.5.230.0060.04417.29
5.5.220.0050.03317.33
5.5.210.0070.02617.28
5.5.200.0130.01817.23
5.5.190.0050.02517.21
5.5.180.0050.04417.33
5.5.170.0040.00914.23
5.5.160.0070.03717.31
5.5.150.0050.03717.33
5.5.140.0050.03817.37
5.5.130.0080.04017.16
5.5.120.0050.02517.31
5.5.110.0060.03517.26
5.5.100.0030.02817.43
5.5.90.0070.02017.21
5.5.80.0030.04717.07
5.5.70.0070.02217.10
5.5.60.0080.03717.19
5.5.50.0030.02417.34
5.5.40.0090.03917.18
5.5.30.0060.04017.13
5.5.20.0030.04717.06
5.5.10.0050.03217.41
5.5.00.0030.03817.11
5.4.450.0110.03116.00
5.4.440.0090.03515.97
5.4.430.0050.04315.96
5.4.420.0050.03716.04
5.4.410.0070.03016.04
5.4.400.0060.03315.88
5.4.390.0120.03315.80
5.4.380.0080.03815.98
5.4.370.0100.04015.89
5.4.360.0050.03915.94
5.4.350.0030.02915.92
5.4.340.0100.02315.80
5.4.330.0030.01012.72
5.4.320.0020.03115.81
5.4.310.0070.02215.88
5.4.300.0070.03515.95
5.4.290.0090.03415.80
5.4.280.0050.02315.91
5.4.270.0060.02315.83
5.4.260.0070.03315.80
5.4.250.0080.02615.79
5.4.240.0000.02515.89
5.4.230.0080.02515.88
5.4.220.0080.03615.87
5.4.210.0070.01715.88
5.4.200.0050.03815.88
5.4.190.0030.04315.96
5.4.180.0000.03415.95
5.4.170.0050.04415.92
5.4.160.0110.03415.79
5.4.150.0060.03315.79
5.4.140.0050.03914.56
5.4.130.0080.03514.54
5.4.120.0070.03914.54
5.4.110.0030.02414.60
5.4.100.0060.03014.60
5.4.90.0070.03714.53
5.4.80.0010.02114.59
5.4.70.0020.04214.60
5.4.60.0050.03714.52
5.4.50.0100.03514.57
5.4.40.0050.03714.57
5.4.30.0050.04114.53
5.4.20.0020.02014.53
5.4.10.0050.04014.56
5.4.00.0130.01514.22
5.3.290.0020.02813.71
5.3.280.0080.03313.66
5.3.270.0050.03913.67
5.3.260.0030.04313.66
5.3.250.0020.04113.65
5.3.240.0030.03813.73
5.3.230.0080.03513.69
5.3.220.0050.03813.69
5.3.210.0070.02513.64
5.3.200.0050.03113.63
5.3.190.0000.02613.63
5.3.180.0020.03113.61
5.3.170.0020.03213.62
5.3.160.0030.02613.61
5.3.150.0080.03713.65
5.3.140.0050.03713.69
5.3.130.0030.04213.64
5.3.120.0050.04313.62
5.3.110.0070.04213.61
5.3.100.0050.03913.41
5.3.90.0100.02913.41
5.3.80.0030.02413.39
5.3.70.0020.04113.33
5.3.60.0100.03713.38
5.3.50.0060.02313.30
5.3.40.0050.02513.35
5.3.30.0020.02513.35
5.3.20.0050.03213.17
5.3.10.0050.03713.24
5.3.00.0050.02013.19
5.2.170.0070.06011.20
5.2.160.0000.03011.14
5.2.150.0030.04711.19
5.2.140.0070.05311.13
5.2.130.0030.06310.96
5.2.120.0070.02311.24
5.2.110.0030.05711.12
5.2.100.0030.03310.98
5.2.90.0100.05311.09
5.2.80.0070.05011.12
5.2.70.0070.03011.01
5.2.60.0070.03711.16
5.2.50.0070.02711.01
5.2.40.0100.04710.99
5.2.30.0070.03010.88
5.2.20.0000.03311.11
5.2.10.0000.03010.77
5.2.00.0030.02710.74
5.1.60.0100.01710.08
5.1.50.0070.0209.98
5.1.40.0030.0339.96
5.1.30.0000.02710.44
5.1.20.0000.02710.41
5.1.10.0000.02710.20
5.1.00.0000.02710.05
5.0.50.0000.0208.67
5.0.40.0070.0138.29
5.0.30.0070.0608.23
5.0.20.0000.0208.25
5.0.10.0030.0208.23
5.0.00.0070.0478.26
4.4.90.0000.0207.08
4.4.80.0030.0137.08
4.4.70.0000.0307.08
4.4.60.0030.0177.08
4.4.50.0070.0137.08
4.4.40.0000.0237.08
4.4.30.0030.0137.08
4.4.20.0000.0177.08
4.4.10.0000.0177.08
4.4.00.0000.0277.08
4.3.110.0100.0077.08
4.3.100.0000.0207.08
4.3.90.0000.0177.08
4.3.80.0000.0277.08
4.3.70.0030.0107.08
4.3.60.0030.0137.08
4.3.50.0000.0207.08
4.3.40.0000.0237.08
4.3.30.0030.0137.08
4.3.20.0000.0177.08
4.3.10.0000.0177.08
4.3.00.0030.0137.08

preferences:
47.5 ms | 400 KiB | 5 Q