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->bar = new StdClass(); $foo->bar->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.0110.01118.94
8.3.30.0100.01018.54
8.3.20.0040.00418.83
8.3.10.0000.00821.02
8.3.00.0040.00423.70
8.2.170.0140.00722.96
8.2.160.0100.00720.29
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0060.00326.16
8.2.120.0000.00821.04
8.2.110.0100.00020.48
8.2.100.0110.00017.91
8.2.90.0040.00419.09
8.2.80.0030.00517.97
8.2.70.0060.00317.50
8.2.60.0060.00317.92
8.2.50.0040.00418.10
8.2.40.0040.00420.49
8.2.30.0040.00419.53
8.2.20.0030.00617.82
8.2.10.0000.00817.81
8.2.00.0090.00017.80
8.1.270.0000.00823.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.89
8.1.230.0040.00819.05
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.36
8.1.190.0050.00517.23
8.1.180.0000.00718.10
8.1.170.0000.00820.50
8.1.160.0070.00022.04
8.1.150.0030.00618.71
8.1.140.0040.00417.54
8.1.130.0000.00717.79
8.1.120.0070.00017.59
8.1.110.0050.00217.56
8.1.100.0040.00417.55
8.1.90.0020.00517.50
8.1.80.0040.00417.48
8.1.70.0000.00717.59
8.1.60.0030.00617.63
8.1.50.0080.00017.59
8.1.40.0000.00717.72
8.1.30.0050.00317.68
8.1.20.0040.00417.71
8.1.10.0050.00317.66
8.1.00.0050.00217.50
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0040.00418.41
8.0.270.0030.00317.10
8.0.260.0030.00316.91
8.0.250.0030.00517.07
8.0.240.0050.00317.02
8.0.230.0000.00716.94
8.0.220.0090.00016.99
8.0.210.0030.00316.89
8.0.200.0030.00317.11
8.0.190.0000.00716.99
8.0.180.0040.00417.07
8.0.170.0040.00417.01
8.0.160.0020.00517.04
8.0.150.0040.00416.92
8.0.140.0070.00016.83
8.0.130.0060.00013.50
8.0.120.0080.00016.81
8.0.110.0040.00416.81
8.0.100.0000.00717.09
8.0.90.0050.00216.78
8.0.80.0110.00616.93
8.0.70.0000.00816.88
8.0.60.0060.00317.05
8.0.50.0040.00417.02
8.0.30.0060.01317.30
8.0.20.0090.01017.40
8.0.10.0070.00017.07
8.0.00.0070.01216.81
7.4.330.0050.00016.68
7.4.320.0030.00316.79
7.4.300.0000.00616.69
7.4.290.0000.00816.67
7.4.280.0030.00616.62
7.4.270.0080.00016.63
7.4.260.0000.00613.41
7.4.250.0000.00716.69
7.4.240.0000.00716.59
7.4.230.0030.00416.82
7.4.220.0130.00716.80
7.4.210.0090.00616.81
7.4.200.0080.00016.93
7.4.190.0080.00016.67
7.4.160.0080.00816.59
7.4.150.0100.01417.40
7.4.140.0110.00617.86
7.4.130.0090.00816.69
7.4.120.0140.00916.57
7.4.110.0170.00016.73
7.4.100.0000.01816.63
7.4.90.0160.00316.61
7.4.80.0170.00019.39
7.4.70.0100.00616.77
7.4.60.0090.00916.73
7.4.50.0000.00916.63
7.4.40.0080.00422.77
7.4.30.0040.01516.61
7.4.00.0000.01015.03
7.3.330.0060.00013.27
7.3.320.0040.00413.41
7.3.310.0070.00016.58
7.3.300.0030.00316.41
7.3.290.0000.01416.43
7.3.280.0040.01416.42
7.3.270.0130.00317.40
7.3.260.0150.00818.24
7.3.250.0090.01116.69
7.3.240.0080.00816.68
7.3.230.0180.00616.40
7.3.210.0120.00616.75
7.3.200.0170.00619.39
7.3.190.0070.01416.68
7.3.180.0110.00416.44
7.3.170.0100.00616.78
7.3.160.0040.01216.68
7.3.120.0110.00414.93
7.3.10.0070.00816.65
7.3.00.0100.00216.72
7.2.330.0130.00416.84
7.2.320.0030.01716.69
7.2.310.0110.00716.80
7.2.300.0180.00416.80
7.2.290.0030.01416.69
7.2.130.0070.00516.89
7.2.120.0050.00717.10
7.2.110.0090.00617.06
7.2.100.0100.01116.93
7.2.90.0110.01017.24
7.2.80.0090.00916.92
7.2.70.0140.00917.08
7.2.60.0130.00516.94
7.2.50.0100.01117.09
7.2.40.0150.00916.91
7.2.30.0040.01417.05
7.2.20.0120.00716.78
7.2.10.0160.00517.02
7.2.00.0090.00716.93
7.1.250.0060.00915.66
7.1.240.0090.00316.09
7.1.230.0090.00315.86
7.1.220.0140.00515.78
7.1.210.0100.00815.92
7.1.200.0190.00715.70
7.1.190.0190.00515.89
7.1.180.0110.00715.93
7.1.170.0190.01015.74
7.1.160.0070.01315.90
7.1.150.0220.00615.71
7.1.140.0120.01515.71
7.1.130.0140.01115.92
7.1.120.0180.00515.86
7.1.110.0130.01616.05
7.1.100.0160.00715.93
7.1.90.0160.00315.79
7.1.80.0140.00315.99
7.1.70.0070.00516.58
7.1.60.0130.00516.54
7.1.50.0100.00516.41
7.1.40.0150.00315.80
7.1.30.0100.00615.89
7.1.20.0120.00315.83
7.1.10.0080.00815.66
7.1.00.0030.02219.09
7.0.330.0100.00515.54
7.0.320.0100.00315.50
7.0.310.0100.00715.48
7.0.300.0110.00715.48
7.0.290.0070.01015.68
7.0.280.0130.00815.41
7.0.270.0110.00715.45
7.0.260.0130.00315.34
7.0.250.0110.00615.34
7.0.240.0070.00715.59
7.0.230.0120.00915.53
7.0.220.0080.00815.48
7.0.210.0060.00615.25
7.0.200.0090.00616.14
7.0.190.0100.00715.67
7.0.180.0160.00315.18
7.0.170.0130.00315.63
7.0.160.0090.00615.48
7.0.150.0090.00615.61
7.0.140.0050.04018.72
7.0.130.0100.00315.64
7.0.120.0000.00915.43
7.0.110.0040.01115.29
7.0.100.0070.00715.52
7.0.90.0210.02517.81
7.0.80.0350.03717.63
7.0.70.0140.02417.63
7.0.60.0120.02317.64
7.0.50.0170.02517.84
7.0.40.0070.02716.92
7.0.30.0030.03316.73
7.0.20.0100.02416.77
7.0.10.0040.02816.79
7.0.00.0020.03116.84
5.6.380.0060.01514.43
5.6.370.0080.00814.68
5.6.360.0060.00914.41
5.6.350.0060.00614.65
5.6.340.0130.00314.54
5.6.330.0060.00914.84
5.6.320.0100.00614.60
5.6.310.0040.00714.07
5.6.300.0150.00014.54
5.6.290.0000.01014.35
5.6.280.0100.03417.46
5.6.270.0030.00714.55
5.6.260.0040.00814.39
5.6.250.0040.01114.62
5.6.240.0080.02317.50
5.6.230.0020.02917.44
5.6.220.0070.04417.53
5.6.210.0020.02617.44
5.6.200.0080.02517.69
5.6.190.0050.02817.77
5.6.180.0030.02717.58
5.6.170.0030.02917.60
5.6.160.0050.02517.73
5.6.150.0060.02317.59
5.6.140.0050.02217.75
5.6.130.0080.02017.57
5.6.120.0050.03217.65
5.6.110.0020.02717.60
5.6.100.0010.02917.70
5.6.90.0090.02217.56
5.6.80.0050.02617.25
5.6.70.0020.03717.32
5.6.60.0100.04017.27
5.6.50.0090.03017.26
5.6.40.0130.04317.31
5.6.30.0120.03017.23
5.6.20.0070.04017.42
5.6.10.0100.04017.38
5.6.00.0110.04017.40
5.5.380.0040.03115.70
5.5.370.0040.02415.81
5.5.360.0020.02515.81
5.5.350.0040.02415.86
5.5.340.0060.02015.91
5.5.330.0050.04516.02
5.5.320.0040.04216.02
5.5.310.0060.02215.85
5.5.300.0050.02115.94
5.5.290.0040.02315.85
5.5.280.0100.02015.86
5.5.270.0050.02215.83
5.5.260.0050.03715.79
5.5.250.0030.02815.83
5.5.240.0070.03715.59
5.5.230.0040.04615.63
5.5.220.0040.02615.51
5.5.210.0100.03715.58
5.5.200.0090.04115.59
5.5.190.0050.02915.65
5.5.180.0080.03915.71
5.5.170.0050.00311.14
5.5.160.0120.03015.71
5.5.150.0100.03815.48
5.5.140.0100.03415.46
5.5.130.0170.03015.62
5.5.120.0080.04115.72
5.5.110.0090.02815.73
5.5.100.0130.02715.71
5.5.90.0140.02415.49
5.5.80.0070.03415.63
5.5.70.0060.02815.48
5.5.60.0080.02215.49
5.5.50.0090.04215.54
5.5.40.0080.03315.53
5.5.30.0070.04215.56
5.5.20.0070.03715.59
5.5.10.0050.02815.48
5.5.00.0050.02715.55
5.4.450.0050.02315.50
5.4.440.0020.02515.17
5.4.430.0040.02315.27
5.4.420.0030.02215.19
5.4.410.0040.02415.40
5.4.400.0070.03515.03
5.4.390.0080.02515.03
5.4.380.0040.02515.11
5.4.370.0080.01914.96
5.4.360.0070.03014.84
5.4.350.0030.04514.92
5.4.340.0120.03714.82
5.4.330.0060.00610.96
5.4.320.0090.02115.18
5.4.310.0050.03815.08
5.4.300.0030.04415.10
5.4.290.0080.03015.06
5.4.280.0150.03215.04
5.4.270.0070.02314.96
5.4.260.0010.02615.09
5.4.250.0090.03915.23
5.4.240.0030.04215.06
5.4.230.0090.03614.97
5.4.220.0120.03215.07
5.4.210.0150.03715.06
5.4.200.0060.04015.08
5.4.190.0090.04215.11
5.4.180.0070.04014.77
5.4.170.0050.04215.01
5.4.160.0080.02715.07
5.4.150.0050.03115.16
5.4.140.0020.03013.70
5.4.130.0050.04213.67
5.4.120.0050.02513.67
5.4.110.0100.03713.75
5.4.100.0040.03013.63
5.4.90.0050.02613.72
5.4.80.0100.03513.87
5.4.70.0090.01713.71
5.4.60.0100.03213.70
5.4.50.0000.02613.69
5.4.40.0050.02113.54
5.4.30.0050.02213.83
5.4.20.0080.04013.80
5.4.10.0070.03713.67
5.4.00.0080.02713.44
5.3.290.0060.03112.74
5.3.280.0050.04012.66
5.3.270.0080.03412.67
5.3.260.0080.02612.67
5.3.250.0090.03912.68
5.3.240.0030.03012.62
5.3.230.0060.03212.62
5.3.220.0030.02512.60
5.3.210.0050.04012.67
5.3.200.0070.04012.63
5.3.190.0050.04412.65
5.3.180.0080.03612.63
5.3.170.0060.02812.66
5.3.160.0000.03412.65
5.3.150.0030.02512.66
5.3.140.0030.02312.59
5.3.130.0030.04212.59
5.3.120.0030.04112.68
5.3.110.0170.04012.63
5.3.100.0060.03612.44
5.3.90.0020.04612.38
5.3.80.0050.03312.33
5.3.70.0070.02512.43
5.3.60.0140.02812.40
5.3.50.0020.02812.32
5.3.40.0050.04412.29
5.3.30.0050.04012.35
5.3.20.0050.03712.27
5.3.10.0070.02812.17
5.3.00.0100.03612.13
5.2.170.0080.03010.97
5.2.160.0060.02810.87
5.2.150.0000.02710.98
5.2.140.0050.02610.93
5.2.130.0050.03310.92
5.2.120.0070.03210.95
5.2.110.0050.02710.83
5.2.100.0030.03110.92
5.2.90.0030.03310.94
5.2.80.0020.03610.96
5.2.70.0020.02710.83
5.2.60.0090.03010.83
5.2.50.0030.02910.88
5.2.40.0030.02710.87
5.2.30.0050.02710.87
5.2.20.0050.01810.89
5.2.10.0060.01510.80
5.2.00.0050.03310.67
5.1.60.0030.02310.40
5.1.50.0050.02710.41
5.1.40.0040.02910.40
5.1.30.0050.02110.52
5.1.20.0020.02210.59
5.1.10.0050.02710.42
5.1.00.0040.03110.38
5.0.50.0030.0219.64
5.0.40.0000.0199.56
5.0.30.0070.0259.51
5.0.20.0050.0229.45
5.0.10.0040.0139.47
5.0.00.0050.0279.48
4.4.90.0030.0209.11
4.4.80.0050.0189.11
4.4.70.0020.0189.11
4.4.60.0050.0119.11
4.4.50.0020.0229.11
4.4.40.0020.0249.11
4.4.30.0030.0159.11
4.4.20.0000.0179.11
4.4.10.0030.0159.11
4.4.00.0030.0289.11
4.3.110.0050.0179.11
4.3.100.0030.0209.11
4.3.90.0040.0159.11
4.3.80.0080.0259.11
4.3.70.0050.0129.11
4.3.60.0050.0189.11
4.3.50.0030.0139.11
4.3.40.0060.0279.11
4.3.30.0020.0189.11
4.3.20.0000.0179.11
4.3.10.0010.0139.11
4.3.00.0030.0169.11

preferences:
47.91 ms | 400 KiB | 5 Q