3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $bar = 'barValue'; protected $baz = 'bazValue'; private $tab = 'tabValue'; } $tt = new Foo(); var_dump( json_decode(json_encode($tt), true))

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)
5.4.390.1070.05718.70
5.4.380.1000.07718.59
5.4.370.1070.06718.78
5.4.360.0800.06718.59
5.4.350.0830.06318.72
5.4.340.0930.04718.79
5.4.320.0930.05718.76
5.4.310.0770.06718.79
5.4.300.0900.06318.45
5.4.290.0900.05718.74
5.4.280.0730.05318.83
5.4.270.0800.05018.74
5.4.260.1070.05018.74
5.4.250.0870.06018.75
5.4.240.1000.05318.55
5.4.230.0830.04718.74
5.4.220.0670.06018.57
5.4.210.0870.06318.58
5.4.200.0930.05316.69
5.4.190.0900.06018.68
5.4.180.0830.05718.61
5.4.170.0900.06018.50
5.4.160.1000.06018.54
5.4.150.0770.06318.78
5.4.140.0930.05016.45
5.4.130.0870.07016.21
5.4.120.1070.05716.29
5.4.110.1170.05716.45
5.4.100.1000.04016.30
5.4.90.1000.05716.27
5.4.80.0830.05716.23
5.4.70.0900.06316.23
5.4.60.1070.04016.18
5.4.50.0970.05316.21
5.4.40.0770.05716.25
5.4.30.0930.05716.24
5.4.20.0970.07716.28
5.4.10.0970.07016.25
5.4.00.0800.05015.68
5.3.290.0970.07714.68
5.3.280.0800.05014.79
5.3.270.0870.07314.74
5.3.260.1230.07014.60
5.3.250.1170.07014.80
5.3.240.0870.05714.60
5.3.230.1000.06014.70
5.3.220.0730.06014.67
5.3.210.0770.06014.69
5.3.200.1230.06014.59
5.3.190.1130.05714.60
5.3.180.1030.05314.66
5.3.170.1100.07314.73
5.3.160.0970.08314.66
5.3.150.1030.05014.58
5.3.140.1030.07014.57
5.3.130.0930.07314.59
5.3.120.1170.06714.60
5.3.110.0900.07314.59
5.3.100.0970.04714.24
5.3.90.1130.05714.14
5.3.80.0930.04714.07
5.3.70.0730.05014.05
5.3.60.0930.05314.07
5.3.50.1000.05713.99
5.3.40.0730.04714.00
5.3.30.0870.05313.96
5.3.20.0700.05013.80
5.3.10.0970.04713.67
5.3.00.0630.06013.62
5.2.170.0700.04011.25
5.2.160.0700.04711.24
5.2.150.0770.05311.36
5.2.140.0570.05011.27
5.2.130.0630.04311.09
5.2.120.0600.03711.16
5.2.110.0870.04011.32
5.2.100.0670.03311.09
5.2.90.0600.04711.12
5.2.80.0670.03711.19
5.2.70.0700.03711.21
5.2.60.0600.04311.05
5.2.50.0630.04311.07
5.2.40.0500.04711.11
5.2.30.0630.04711.06
5.2.20.0600.03711.03
5.2.10.0600.04710.95
5.2.00.0530.05010.76
5.1.60.0830.04310.02
5.1.50.0770.04710.13
5.1.40.0500.04010.09
5.1.30.0470.03010.36
5.1.20.0530.04010.48
5.1.10.0570.04310.10
5.1.00.0400.04010.05
5.0.50.0330.0338.58
5.0.40.0430.0338.41
5.0.30.0370.0578.25
5.0.20.0270.0308.32
5.0.10.0270.0278.35
5.0.00.0330.0408.36
4.4.90.0170.0235.89
4.4.80.0300.0275.88
4.4.70.0200.0235.88
4.4.60.0370.0175.95
4.4.50.0130.0275.91
4.4.40.0270.0375.88
4.4.30.0270.0306.01
4.4.20.0070.0235.93
4.4.10.0270.0235.94
4.4.00.0300.0336.00
4.3.110.0270.0275.88
4.3.100.0270.0275.91
4.3.90.0300.0335.88
4.3.80.0230.0375.89
4.3.70.0170.0275.88
4.3.60.0300.0275.88
4.3.50.0270.0275.88
4.3.40.0270.0335.88
4.3.30.0130.0275.88
4.3.20.0130.0305.88
4.3.10.0130.0275.88
4.3.00.0030.03014.47

preferences:
125.21 ms | 1398 KiB | 7 Q