3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $bar = 'barValue'; protected $baz = 'bazValue'; private $biz = 'bizValue'; } $foo = new Foo(); $arrayFoo = (array) $foo; ob_start(); var_export($arrayFoo); $out = ob_get_clean(); $out = preg_replace('/\'\' . "\\\0\" . \'[*a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*\' . "\\\0\" . /', '', $out); eval('$newArray = ' . $out . ';'); var_dump($newArray);

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.60.0070.01416.63
8.3.50.0140.00717.65
8.3.40.0040.01119.09
8.3.30.0060.00918.82
8.3.20.0080.00018.85
8.3.10.0050.00320.54
8.3.00.0090.00017.75
8.2.180.0120.00916.48
8.2.170.0090.00622.96
8.2.160.0100.00722.07
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00419.58
8.2.110.0000.01021.20
8.2.100.0000.01218.03
8.2.90.0040.00419.23
8.2.80.0060.00317.97
8.2.70.0030.00617.75
8.2.60.0050.00317.93
8.2.50.0040.00418.07
8.2.40.0040.00418.28
8.2.30.0050.00318.13
8.2.20.0000.00717.82
8.2.10.0030.00617.91
8.2.00.0000.00718.01
8.1.280.0070.00725.92
8.1.270.0000.00924.66
8.1.260.0000.00826.35
8.1.250.0050.00328.09
8.1.240.0110.00022.50
8.1.230.0070.00421.11
8.1.220.0050.00318.77
8.1.210.0000.01118.87
8.1.200.0060.00317.25
8.1.190.0040.00417.54
8.1.180.0090.00018.10
8.1.170.0000.00818.92
8.1.160.0050.00218.84
8.1.150.0040.00418.70
8.1.140.0030.00717.52
8.1.130.0000.00717.77
8.1.120.0020.00517.49
8.1.110.0040.00417.58
8.1.100.0030.00617.44
8.1.90.0070.00017.60
8.1.80.0020.00517.51
8.1.70.0070.00017.52
8.1.60.0000.00917.81
8.1.50.0060.00317.55
8.1.40.0000.00817.59
8.1.30.0060.00317.80
8.1.20.0000.00817.70
8.1.10.0000.00817.71
8.1.00.0000.00717.66
8.0.300.0040.00419.98
8.0.290.0040.00416.88
8.0.280.0030.00318.39
8.0.270.0070.00017.29
8.0.260.0030.00317.04
8.0.250.0040.00417.08
8.0.240.0090.00017.13
8.0.230.0040.00416.98
8.0.220.0070.00016.94
8.0.210.0040.00417.07
8.0.200.0000.00617.00
8.0.190.0050.00316.97
8.0.180.0040.00417.08
8.0.170.0060.00316.97
8.0.160.0040.00417.11
8.0.150.0040.00417.03
8.0.140.0000.00816.86
8.0.130.0030.00313.55
8.0.120.0000.00817.07
8.0.110.0070.00016.89
8.0.100.0030.00517.07
8.0.90.0050.00216.85
8.0.80.0100.00617.09
8.0.70.0030.00517.01
8.0.60.0070.00017.11
8.0.50.0040.00416.92
8.0.30.0080.01117.25
8.0.20.0130.00517.52
8.0.10.0000.00717.04
8.0.00.0080.01016.76
7.4.330.0000.00513.12
7.4.320.0060.00016.83
7.4.300.0030.00316.73
7.4.290.0070.00016.77
7.4.280.0070.00316.83
7.4.270.0000.00716.73
7.4.260.0060.00013.61
7.4.250.0040.00416.71
7.4.240.0050.00316.87
7.4.230.0000.00716.71
7.4.220.0100.01016.76
7.4.210.0060.00916.66
7.4.200.0070.00016.83
7.4.190.0050.00216.70
7.4.160.0100.00616.64
7.4.150.0030.01416.63
7.4.140.0080.01416.81
7.4.130.0090.01116.75
7.4.120.0090.01116.70
7.4.110.0070.01016.78
7.4.100.0130.00316.70
7.4.90.0060.01216.82
7.4.80.0090.01116.57
7.4.70.0050.01116.83
7.4.60.0060.01216.87
7.4.50.0000.00916.40
7.4.40.0070.00716.55
7.4.30.0090.01016.67
7.4.00.0060.01114.95
7.3.330.0030.00313.45
7.3.320.0000.00513.38
7.3.310.0030.00316.54
7.3.300.0000.00616.32
7.3.290.0060.01016.45
7.3.280.0070.00816.42
7.3.270.0060.01116.66
7.3.260.0060.01216.60
7.3.250.0070.01016.79
7.3.240.0070.01116.42
7.3.230.0090.01216.72
7.3.210.0070.01016.59
7.3.200.0120.00619.39
7.3.190.0150.00316.40
7.3.180.0030.01316.33
7.3.170.0060.01016.74
7.3.160.0120.00916.40
7.3.120.0070.00915.73
7.3.110.0110.00415.53
7.3.100.0050.01115.75
7.3.90.0030.00915.60
7.3.80.0070.00715.74
7.3.70.0030.00915.71
7.3.60.0040.00815.67
7.3.50.0060.00515.65
7.3.40.0090.00515.70
7.3.30.0060.00915.56
7.3.20.0070.00516.94
7.3.10.0070.00616.87
7.3.00.0090.00416.80
7.2.330.0090.00916.84
7.2.320.0150.00316.84
7.2.310.0100.01116.87
7.2.300.0160.00616.86
7.2.290.0120.00916.63
7.2.250.0040.01515.09
7.2.240.0030.01215.89
7.2.230.0080.00615.62
7.2.220.0050.01015.81
7.2.210.0010.01515.93
7.2.200.0080.00715.76
7.2.190.0020.01215.77
7.2.180.0100.00415.86
7.2.170.0060.00615.85
7.2.160.0060.00716.21
7.2.150.0080.00517.12
7.2.140.0070.00817.09
7.2.130.0070.00717.20
7.2.120.0090.00617.18
7.2.110.0030.00617.18
7.2.100.0050.01117.11
7.2.90.0090.00617.14
7.2.80.0080.00617.13
7.2.70.0090.00617.21
7.2.60.0070.00817.05
7.2.50.0090.00717.27
7.2.40.0060.01017.21
7.2.30.0100.00517.11
7.2.20.0040.00916.99
7.2.10.0080.00817.05
7.2.00.0070.01017.83
7.1.330.0070.00616.44
7.1.320.0050.00716.28
7.1.310.0030.00816.44
7.1.300.0050.01016.34
7.1.290.0050.00716.34
7.1.280.0020.01216.25
7.1.270.0080.00716.34
7.1.260.0020.00816.43
7.1.250.0050.00916.56
7.1.200.0030.01015.82
7.1.100.0060.01218.55
7.1.70.0150.00317.08
7.1.60.0090.01519.40
7.1.50.0130.01017.15
7.1.00.0100.06022.36
7.0.200.0000.00916.89
7.0.140.0000.07722.00
7.0.120.0100.06722.12
7.0.60.0130.06019.93
7.0.50.0100.07017.92
7.0.40.0030.04720.20
7.0.30.0100.05720.18
7.0.20.0330.07720.16
7.0.10.0130.05020.13
7.0.00.0170.07320.24
5.6.280.0030.07321.02
5.6.210.0170.07320.71
5.6.200.0000.08718.18
5.6.190.0030.06020.64
5.6.180.0330.07020.39
5.6.170.0200.08020.61
5.6.160.0100.07020.48
5.6.150.0030.08318.16
5.6.140.0170.06018.11
5.6.130.0070.03718.15
5.6.120.0130.07020.99
5.6.110.0070.07721.00
5.6.100.0130.07720.98
5.6.90.0030.06320.97
5.6.80.0030.08320.53
5.5.350.0230.06720.50
5.5.340.0070.08017.96
5.5.330.0100.06720.40
5.5.320.0170.04020.34
5.5.310.0130.08320.35
5.5.300.0030.08318.05
5.5.290.0100.05317.91
5.5.280.0000.05020.90
5.5.270.0100.06720.87
5.5.260.0030.05020.90
5.5.250.0070.06320.59
5.5.240.0030.03020.16
5.4.450.0270.06719.18
5.4.440.0230.03719.47
5.4.430.0200.04319.52
5.4.420.0200.08319.45
5.4.410.0170.04719.27
5.4.400.0270.07018.88
5.4.390.0170.06318.87
5.4.380.0200.04019.07
5.4.370.0100.04018.99
5.4.360.0200.03319.09
5.4.350.0170.04019.24
5.4.340.0170.07319.07
5.4.320.0170.08319.31
5.4.310.0230.06319.07
5.4.300.0400.03319.15
5.4.290.0270.07018.99
5.4.280.0230.05018.98
5.4.270.0130.06319.01
5.4.260.0170.03318.85
5.4.250.0230.04019.08
5.4.240.0130.03719.17
5.4.230.0130.03718.87
5.4.220.0300.03019.21
5.4.210.0130.03719.06
5.4.200.0170.03319.13
5.4.190.0130.03719.13
5.4.180.0170.05319.21
5.4.170.0170.04319.23
5.4.160.0230.03718.96
5.4.150.0130.04019.20
5.4.140.0200.04716.42
5.4.130.0170.06316.51
5.4.120.0230.04716.67
5.4.110.0170.04016.55
5.4.100.0100.04016.40
5.4.90.0170.04316.45
5.4.80.0170.04016.34
5.4.70.0170.04716.27
5.4.60.0170.04016.34
5.4.50.0100.07716.55
5.4.40.0270.06016.43
5.4.30.0170.04316.43
5.4.20.0270.05716.34
5.4.10.0170.06316.50
5.4.00.0170.05015.73
5.3.290.0200.07314.72
5.3.280.0170.04714.62
5.3.270.0130.03714.69
5.3.260.0070.04314.50
5.3.250.0100.04314.58
5.3.240.0230.07014.57
5.3.230.0270.03714.52
5.3.220.0170.04714.56
5.3.210.0200.03314.79
5.3.200.0230.03714.79
5.3.190.0130.04714.54
5.3.180.0200.03714.64
5.3.170.0200.07314.54
5.3.160.0170.06314.52
5.3.150.0330.03314.66
5.3.140.0230.05714.71
5.3.130.0130.04014.59
5.3.120.0270.02714.46
5.3.110.0200.08014.47
5.3.100.0300.06713.94
5.3.90.0270.02713.99
5.3.80.0200.04714.00
5.3.70.0170.04013.93
5.3.60.0170.07013.91
5.3.50.0230.06313.87
5.3.40.0270.04713.97
5.3.30.0200.03713.93
5.3.20.0300.06313.85
5.3.10.0200.03713.74
5.3.00.0230.06713.75
5.2.170.0170.06312.07
5.2.160.0170.05312.07
5.2.150.0100.03712.07
5.2.140.0200.04012.07
5.2.130.0230.02312.07
5.2.120.0330.02012.07
5.2.110.0230.05712.07
5.2.100.0230.03012.07
5.2.90.0200.05312.07
5.2.80.0130.06012.07
5.2.70.0230.05312.07
5.2.60.0100.04712.07
5.2.50.0200.05712.07
5.2.40.0200.03312.07
5.2.30.0070.03712.07
5.2.20.0170.05712.07
5.2.10.0170.03312.07
5.2.00.0100.04312.07
5.1.60.0100.03012.07
5.1.50.0130.02712.07
5.1.40.0170.04712.07
5.1.30.0300.01712.07
5.1.20.0170.02312.07
5.1.10.0170.04712.07
5.1.00.0170.03012.07
5.0.50.0070.03312.07
5.0.40.0130.03712.07
5.0.30.0100.05712.07
5.0.20.0070.02712.07
5.0.10.0070.03712.07
5.0.00.0100.04312.07
4.4.90.0100.03312.07
4.4.80.0070.03712.07
4.4.70.0100.03712.07
4.4.60.0100.03312.07
4.4.50.0100.02712.07
4.4.40.0070.02312.07
4.4.30.0070.02012.07
4.4.20.0030.01712.07
4.4.10.0070.03712.07
4.4.00.0130.04712.07
4.3.110.0070.03012.07
4.3.100.0100.02312.07
4.3.90.0070.03312.07
4.3.80.0130.04012.07
4.3.70.0100.02712.07
4.3.60.0030.02312.07
4.3.50.0070.01712.07
4.3.40.0100.03012.07
4.3.30.0030.01712.07
4.3.20.0030.03712.07
4.3.10.0000.04012.07
4.3.00.0030.03712.07

preferences:
56.84 ms | 400 KiB | 5 Q