3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Testy { public $field; public __construct() { $this->field = 1; } } var_dump((new Testy)->field);

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.6.80.0070.04320.49
5.5.240.0430.06020.11
5.4.400.0330.05718.88
5.4.390.0570.05718.77
5.4.380.0500.06718.84
5.4.370.0400.07318.74
5.4.360.0430.06718.69
5.4.350.0430.07318.74
5.4.340.0570.06718.53
5.4.320.0430.07718.68
5.4.310.0530.06318.69
5.4.300.0330.07718.57
5.4.290.0470.05718.61
5.4.280.0470.05718.72
5.4.270.0670.06318.75
5.4.260.0400.05018.61
5.4.250.0530.06318.55
5.4.240.0400.05718.50
5.4.230.0370.06318.75
5.4.220.0430.05318.80
5.4.210.0530.04718.81
5.4.200.0430.06016.53
5.4.190.0470.05318.57
5.4.180.0530.05718.82
5.4.170.0400.06318.60
5.4.160.0570.06318.69
5.4.150.0270.06018.58
5.4.140.0500.06716.23
5.4.130.0430.05316.44
5.4.120.0870.06016.29
5.4.110.0700.05016.17
5.4.100.0600.06316.25
5.4.90.0330.05316.20
5.4.80.0470.05316.17
5.4.70.0400.05716.19
5.4.60.0430.08716.20
5.4.50.0730.06316.39
5.4.40.0570.06716.25
5.4.30.0570.06716.27
5.4.20.0400.06316.29
5.4.10.0470.04716.25
5.4.00.0530.05715.87
5.3.290.0370.06314.64
5.3.280.0400.06014.74
5.3.270.0470.05714.64
5.3.260.0470.05714.63
5.3.250.0470.06714.64
5.3.240.0500.07014.61
5.3.230.0630.05714.80
5.3.220.0400.06014.58
5.3.210.0530.07014.69
5.3.200.0630.05314.60
5.3.190.0500.06714.79
5.3.180.0530.04314.61
5.3.170.0330.08014.56
5.3.160.0430.06014.61
5.3.150.0370.05314.58
5.3.140.0530.05714.61
5.3.130.0670.06714.76
5.3.120.0570.08014.54
5.3.110.0570.04714.58
5.3.100.0430.05314.17
5.3.90.0430.06714.05
5.3.80.0500.06314.07
5.3.70.0500.06314.04
5.3.60.0330.06314.10
5.3.50.0300.05314.16
5.3.40.0300.07014.01
5.3.30.0430.06013.94
5.3.20.0530.06013.81
5.3.10.0430.05313.70
5.3.00.0170.07313.68
5.2.170.0400.03711.17
5.2.160.0270.04011.34
5.2.150.0300.05311.34
5.2.140.0300.05311.23
5.2.130.0370.04711.14
5.2.120.0270.04711.17
5.2.110.0500.05311.22
5.2.100.0330.04011.09
5.2.90.0270.05711.12
5.2.80.0330.05011.09
5.2.70.0330.04311.07
5.2.60.0270.05011.26
5.2.50.0370.05311.08
5.2.40.0270.04710.99
5.2.30.0370.06011.07
5.2.20.0230.05311.03
5.2.10.0230.05711.04
5.2.00.0330.03310.90
5.1.60.0300.04710.01
5.1.50.0270.04010.02
5.1.40.0270.04310.05
5.1.30.0370.04310.39
5.1.20.0300.05010.53
5.1.10.0170.03710.10
5.1.00.0300.03710.18
5.0.50.0100.0338.55
5.0.40.0200.0238.59
5.0.30.0130.0538.20
5.0.20.0230.0238.27
5.0.10.0100.0478.16
5.0.00.0200.0578.36
4.4.90.0270.0236.02
4.4.80.0130.0305.91
4.4.70.0170.0275.97
4.4.60.0170.0275.98
4.4.50.0130.0305.89
4.4.40.0200.0405.88
4.4.30.0100.0305.88
4.4.20.0070.0305.94
4.4.10.0100.0305.95
4.4.00.0130.0375.89
4.3.110.0100.0335.94
4.3.100.0130.0275.81
4.3.90.0130.0275.89
4.3.80.0130.0405.81
4.3.70.0130.0335.80
4.3.60.0100.0235.82
4.3.50.0070.0275.89
4.3.40.0170.0375.77
4.3.30.0000.0335.25
4.3.20.0000.0305.25
4.3.10.0070.0175.25
4.3.00.0130.0206.55

preferences:
144.05 ms | 1394 KiB | 7 Q