3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = array(); class MyArrayObject{ public $name, $age; public function __construct( $name, $age ) { $this->name = $name; $this->age = $age; } function getName() { return $this->name; } function setName($name) { $this->name = $name; } } for( $x=0;$x<10000;$x++){ $o = new MyArrayObject( 'Adam', 35 ); $name = $o->getName(); $o->setName($name . "2"); $s[] = $o; }

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.0100.01418.80
8.3.50.0150.00617.84
8.3.40.0070.01120.12
8.3.30.0180.00720.09
8.3.20.0040.00724.18
8.3.10.0030.00724.66
8.3.00.0030.00726.16
8.2.180.0070.01025.92
8.2.170.0120.00620.32
8.2.160.0130.00322.96
8.2.150.0090.00025.66
8.2.140.0090.00024.66
8.2.130.0050.00526.16
8.2.120.0030.01321.00
8.2.110.0080.00421.75
8.2.100.0080.00519.41
8.2.90.0100.00019.25
8.2.80.0070.00320.14
8.2.70.0050.00519.00
8.2.60.0070.00318.86
8.2.50.0080.00318.88
8.2.40.0070.00320.01
8.2.30.0040.00719.55
8.2.20.0030.00619.62
8.2.10.0050.00520.67
8.2.00.0000.00920.66
8.1.280.0110.01125.92
8.1.270.0030.00626.10
8.1.260.0000.00926.35
8.1.250.0060.00328.09
8.1.240.0060.00620.06
8.1.230.0000.01224.92
8.1.220.0070.00320.76
8.1.210.0000.01119.36
8.1.200.0040.00719.55
8.1.190.0040.00719.35
8.1.180.0060.00619.22
8.1.170.0040.00720.55
8.1.160.0030.00720.82
8.1.150.0060.00320.81
8.1.140.0030.00620.82
8.1.130.0060.00322.11
8.1.120.0060.00319.29
8.1.110.0070.00319.19
8.1.100.0030.00619.20
8.1.90.0030.00619.23
8.1.80.0050.00919.26
8.1.70.0000.01019.31
8.1.60.0060.00619.48
8.1.50.0080.00319.39
8.1.40.0070.00419.42
8.1.30.0000.01019.45
8.1.20.0030.00719.50
8.1.10.0060.00619.39
8.1.00.0040.00719.33
8.0.300.0060.00318.77
8.0.290.0030.00718.25
8.0.280.0000.00920.08
8.0.270.0070.00319.68
8.0.260.0040.00421.88
8.0.250.0030.00718.68
8.0.240.0060.00618.52
8.0.230.0040.00418.63
8.0.220.0040.00518.64
8.0.210.0000.00918.66
8.0.200.0000.00918.73
8.0.190.0040.00718.59
8.0.180.0030.00718.73
8.0.170.0040.00718.64
8.0.160.0100.00018.72
8.0.150.0030.00718.57
8.0.140.0000.01018.64
8.0.130.0050.00315.10
8.0.120.0070.00318.56
8.0.110.0000.01118.63
8.0.100.0000.01018.65
8.0.90.0030.00718.50
8.0.80.0120.00818.57
8.0.70.0060.00318.48
8.0.60.0100.00018.71
8.0.50.0030.00718.64
8.0.30.0160.00718.89
8.0.20.0130.01018.87
8.0.10.0000.01118.64
8.0.00.0170.01118.29
7.4.330.0030.00317.23
7.4.320.0070.00318.12
7.4.300.0060.00318.34
7.4.290.0030.00718.14
7.4.280.0100.00318.32
7.4.270.0080.00618.18
7.4.260.0000.00815.13
7.4.250.0030.00618.30
7.4.240.0040.00818.30
7.4.230.0080.00418.32
7.4.220.0020.00718.25
7.4.210.0050.01618.21
7.4.200.0030.00718.23
7.4.130.0140.01418.31
7.4.120.0150.00618.42
7.4.110.0040.01818.38
7.4.100.0200.01018.05
7.4.90.0120.01218.07
7.4.80.0120.01418.12
7.4.70.0160.01118.13
7.4.60.0120.01318.18
7.4.50.0070.01918.25
7.4.40.0110.01218.24
7.4.30.0090.01518.17
7.4.20.0120.01118.12
7.4.10.0130.01018.34
7.4.00.0140.00918.01
7.3.330.0040.00817.88
7.3.320.0030.00615.12
7.3.310.0030.00618.16
7.3.300.0070.00318.07
7.3.290.0090.01318.01
7.3.280.0130.00717.94
7.3.260.0130.01318.13
7.3.230.0110.01618.21
7.3.210.0140.01418.20
7.3.200.0120.01417.89
7.3.190.0160.00917.95
7.3.180.0140.01117.97
7.3.170.0150.00718.09
7.3.160.0130.01318.16
7.3.150.0130.01218.01
7.3.140.0100.01218.15
7.3.130.0100.01118.20
7.3.120.0120.01117.95
7.3.110.0110.01318.03
7.3.100.0160.00618.14
7.3.90.0080.01518.21
7.3.80.0080.01417.93
7.3.70.0100.01418.13
7.3.60.0100.01318.09
7.3.50.0140.00817.99
7.3.40.0100.01217.91
7.3.30.0110.01118.00
7.3.20.0120.01218.12
7.3.10.0090.01518.07
7.3.00.0140.01418.13
7.2.330.0160.01318.56
7.2.320.0110.01418.60
7.2.310.0160.01218.56
7.2.300.0120.01318.48
7.2.290.0090.01518.46
7.2.280.0090.01618.66
7.2.270.0120.01218.30
7.2.260.0120.01218.44
7.2.250.0080.01618.63
7.2.240.0110.01318.62
7.2.230.0060.01818.64
7.2.220.0120.01218.51
7.2.210.0100.01418.49
7.2.200.0150.01218.56
7.2.190.0110.01218.49
7.2.180.0130.01018.36
7.2.170.0120.01318.55
7.2.160.0130.01018.36
7.2.150.0180.01418.65
7.2.140.0120.01318.48
7.2.130.0150.01418.62
7.2.120.0200.01218.46
7.2.110.0120.01418.57
7.2.100.0140.01318.56
7.2.90.0140.01518.54
7.2.80.0120.01318.56
7.2.70.0120.01418.51
7.2.60.0180.01418.47
7.2.50.0190.01018.65
7.2.40.0100.01518.49
7.2.30.0170.02118.51
7.2.20.0110.01218.63
7.2.10.0180.01218.58
7.2.00.0130.01318.52

preferences:
48.74 ms | 401 KiB | 5 Q