3v4l.org

run code in 500+ PHP versions simultaneously
<?php $client = (object) ['id' => 1]; // system(id) is removed $databaseValue = '$client->id; system("id")'; preg_match_all('/^\$(?:[a-z]||[A-Z])\S+/', $databaseValue, $matches); if (!empty($matches)) { $firstVariableOccurance = current(current($matches)); eval("\$value = {$firstVariableOccurance};"); echo "Send command {$value}"; }

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.5.30.0100.00819.11
8.5.20.0090.01021.22
8.5.10.0120.00420.08
8.5.00.0110.00822.93
8.4.180.0110.01025.74
8.4.170.0130.00823.86
8.4.160.0120.01023.63
8.4.150.0070.00617.88
8.4.140.0140.00617.72
8.4.130.0150.00617.78
8.4.120.0090.01020.82
8.4.110.0140.00622.59
8.4.100.0050.00518.12
8.4.90.0040.00420.54
8.4.80.0130.00818.90
8.4.70.0130.00820.88
8.4.60.0070.00520.70
8.4.50.0110.00718.69
8.4.40.0070.01324.16
8.4.30.0200.00020.31
8.4.20.0070.01018.00
8.4.10.0100.01022.18
8.3.300.0150.00722.91
8.3.290.0140.00918.69
8.3.280.0070.00517.30
8.3.270.0120.00716.77
8.3.260.0130.00716.57
8.3.250.0090.00616.95
8.3.240.0100.00916.86
8.3.230.0070.00116.75
8.3.220.0090.00918.95
8.3.210.0050.00516.82
8.3.200.0080.00116.93
8.3.190.0030.00519.09
8.3.180.0130.00619.04
8.3.170.0150.00017.14
8.3.160.0070.01116.60
8.3.150.0080.00016.79
8.3.140.0070.01116.70
8.3.130.0040.00418.52
8.3.120.0060.01019.04
8.3.110.0110.00020.94
8.3.100.0030.00624.06
8.3.90.0070.00026.77
8.3.80.0090.00018.55
8.3.70.0140.00716.58
8.3.60.0100.00616.63
8.3.50.0140.00720.24
8.3.40.0170.00321.84
8.3.30.0140.00419.09
8.3.20.0000.00724.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.300.0140.00618.50
8.2.290.0060.01320.28
8.2.280.0150.00518.82
8.2.270.0080.01118.86
8.2.260.0090.00616.98
8.2.250.0040.00417.11
8.2.240.0030.00618.98
8.2.230.0040.00422.58
8.2.220.0120.00437.54
8.2.210.0100.01026.77
8.2.200.0030.00617.00
8.2.190.0130.00716.75
8.2.180.0130.00325.92
8.2.170.0110.01122.96
8.2.160.0150.00022.96
8.2.150.0030.00525.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00420.94
8.2.110.0110.00422.20
8.2.100.0080.00418.03
8.2.90.0000.00819.22
8.2.80.0050.00317.97
8.2.70.0070.00317.88
8.2.60.0080.00017.79
8.2.50.0030.00718.07
8.2.40.0030.00518.12
8.2.30.0000.00818.21
8.2.20.0000.00722.18
8.2.10.0000.00818.15
8.2.00.0040.00419.27
8.1.340.0110.01017.86
8.1.330.0070.01121.96
8.1.320.0110.00618.18
8.1.310.0040.00418.34
8.1.300.0030.00618.75
8.1.290.0070.00330.84
8.1.280.0100.01025.92
8.1.270.0060.00323.99
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00322.55
8.1.230.0080.00421.12
8.1.220.0040.00417.74
8.1.210.0090.00018.77
8.1.200.0050.00517.35
8.1.190.0040.00417.48
8.1.180.0000.00918.10
8.1.170.0040.00418.77
8.1.160.0090.00018.93
8.1.150.0040.00418.69
8.1.140.0000.00717.54
8.1.130.0100.00018.84
8.1.120.0000.00717.63
8.1.110.0000.00717.51
8.1.100.0060.00617.61
8.1.90.0000.00717.62
8.1.80.0140.00017.61
8.1.70.0120.00217.39
8.1.60.0130.00417.64
8.1.50.0130.00317.49
8.1.40.0130.00417.51
8.1.30.0060.01117.71
8.1.20.0170.00017.72
8.1.10.0090.00817.68
8.1.00.0140.00417.60
8.0.300.0020.00518.77
8.0.290.0070.00017.00
8.0.280.0000.00718.39
8.0.270.0000.00717.05
8.0.260.0030.00318.49
8.0.250.0030.00317.14
8.0.240.0030.00317.09
8.0.230.0030.00817.09
8.0.220.0000.00717.07
8.0.210.0110.00316.97
8.0.200.0110.00417.16
8.0.190.0140.00016.97
8.0.180.0110.00416.96
8.0.170.0050.00916.99
8.0.160.0110.00416.98
8.0.150.0120.00416.87
8.0.140.0090.00516.96
8.0.130.0110.00417.05
8.0.120.0150.00016.99
8.0.110.0130.00216.98
8.0.100.0130.00217.01
8.0.90.0050.00916.98
8.0.80.0140.00017.04
8.0.70.0040.00816.98
8.0.60.0100.00317.09
8.0.50.0060.00617.06
8.0.30.0120.00017.03
8.0.20.0050.00517.16
8.0.10.0150.00017.16
7.4.330.0050.00015.55
7.4.320.0030.00316.76
7.4.300.0070.01016.75
7.4.290.0060.00916.62
7.4.280.0110.00716.70
7.4.270.0080.00816.63
7.4.260.0110.00616.81
7.4.250.0030.01416.73
7.4.240.0160.00016.82
7.4.230.0110.00516.76
7.4.220.0050.01016.65
7.4.210.0100.00516.79
7.4.200.0110.00316.72
7.4.190.0080.00416.83
7.4.180.0050.00516.84
7.4.160.0110.00016.72
7.4.150.0120.00016.79
7.4.140.0110.00016.46
7.4.130.0040.00716.51
7.4.120.0090.00316.39
7.4.110.0100.00016.59
7.4.100.0080.00516.66
7.4.90.0100.00416.53
7.4.80.0090.00416.56
7.4.70.0080.00316.76
7.4.60.0090.00016.39
7.4.50.0040.00416.61
7.4.40.0030.00316.57
7.4.30.0000.00716.66
7.4.20.0070.00016.59
7.4.10.0030.00316.56
7.4.00.0030.00316.63

preferences:
51.95 ms | 1233 KiB | 5 Q